Fix MacOS X 10.4 compile issues.
configure.in: - 10.4 doesn't include libsupc++.a, so we need to use g++ when compiling. src/Fl_Help_View.cxx: - Fl_Help_View::format_table(): missing initialization of font and fsize. src/Fl_Text_Buffer.cxx: - Fl_Text_Buffer::remove_rectangle(): missing initialization of endOffset. src/Fl_Gl_Window.cxx: - Fl_Gl_Window::flush(): use 0xff instead of ~0 for clear_damage() call. test/keyboard.cxx: - Apparently unnamed structs are not supported by Apple's GCC 4.0... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4301 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
8a275b2985
commit
671ef36117
@ -754,7 +754,9 @@ if test -n "$GCC"; then
|
||||
;;
|
||||
esac
|
||||
|
||||
CXX="$CC"
|
||||
if test x$uname != xDarwin; then
|
||||
CXX="$CC"
|
||||
fi
|
||||
|
||||
# Show all standard warnings + unused variables, conversion errors,
|
||||
# and inlining problems when compiling...
|
||||
|
@ -329,7 +329,7 @@ void Fl_Gl_Window::flush() {
|
||||
|
||||
} else {
|
||||
damage1_ = damage();
|
||||
clear_damage(~0); draw();
|
||||
clear_damage(0xff); draw();
|
||||
swap_buffers();
|
||||
}
|
||||
|
||||
|
@ -1633,6 +1633,8 @@ Fl_Help_View::format_table(int *table_width, // O - Total table width
|
||||
max_width = 0;
|
||||
pre = 0;
|
||||
needspace = 0;
|
||||
font = fonts_[nfonts_][0];
|
||||
fsize = fonts_[nfonts_][1];
|
||||
|
||||
// Scan the table...
|
||||
for (ptr = table, column = -1, width = 0, s = buf, incell = 0; *ptr;)
|
||||
|
@ -1540,6 +1540,7 @@ void Fl_Text_Buffer::remove_rectangular_( int start, int end, int rectStart,
|
||||
the text between rectStart and rectEnd and padding appropriately */
|
||||
lineStart = start;
|
||||
outPtr = outStr;
|
||||
endOffset = 0;
|
||||
while ( lineStart <= mLength && lineStart <= end ) {
|
||||
lineEnd = line_end( lineStart );
|
||||
line = text_range( lineStart, lineEnd );
|
||||
|
@ -62,7 +62,7 @@ int MyWindow::handle(int msg) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct {int n; const char* text;} table[] = {
|
||||
struct keycode_table{int n; const char* text;} table[] = {
|
||||
{FL_Escape, "FL_Escape"},
|
||||
{FL_BackSpace, "FL_BackSpace"},
|
||||
{FL_Tab, "FL_Tab"},
|
||||
|
Loading…
Reference in New Issue
Block a user