summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Device.cxx2
-rw-r--r--src/Fl_GDI_Printer.cxx2
-rw-r--r--src/Fl_Native_File_Chooser_WIN32.cxx2
-rw-r--r--src/Fl_Tree_Item.cxx26
4 files changed, 18 insertions, 14 deletions
diff --git a/src/Fl_Device.cxx b/src/Fl_Device.cxx
index ac41afc23..26db1583c 100644
--- a/src/Fl_Device.cxx
+++ b/src/Fl_Device.cxx
@@ -142,7 +142,7 @@ void Fl_Abstract_Printer::delete_image_list()
while(image_list_) {
struct chain_elt *next = image_list_->next;
if(image_list_->image) delete image_list_->image;
- if (image_list_->data) delete image_list_->data;
+ if (image_list_->data) delete (uchar*) image_list_->data; // msvc6 compilation fix
free(image_list_);
image_list_ = next;
}
diff --git a/src/Fl_GDI_Printer.cxx b/src/Fl_GDI_Printer.cxx
index 7ac51389c..6717a3803 100644
--- a/src/Fl_GDI_Printer.cxx
+++ b/src/Fl_GDI_Printer.cxx
@@ -30,7 +30,7 @@
#include <FL/fl_ask.H>
-#include <math.h>
+#include <FL/math.h>
extern HWND fl_window;
diff --git a/src/Fl_Native_File_Chooser_WIN32.cxx b/src/Fl_Native_File_Chooser_WIN32.cxx
index 2cebb62ff..063c1e532 100644
--- a/src/Fl_Native_File_Chooser_WIN32.cxx
+++ b/src/Fl_Native_File_Chooser_WIN32.cxx
@@ -243,7 +243,7 @@ void Fl_Native_File_Chooser::ClearOFN() {
_ofn.lpstrFile = NULL;
}
if ( _ofn.lpstrInitialDir ) {
- delete [] _ofn.lpstrInitialDir;
+ delete [] (TCHAR*) _ofn.lpstrInitialDir; //msvc6 compilation fix
_ofn.lpstrInitialDir = NULL;
}
_ofn.lpstrFilter = NULL; // (deleted elsewhere)
diff --git a/src/Fl_Tree_Item.cxx b/src/Fl_Tree_Item.cxx
index 66950ed4f..703bfb2fd 100644
--- a/src/Fl_Tree_Item.cxx
+++ b/src/Fl_Tree_Item.cxx
@@ -373,11 +373,13 @@ void Fl_Tree_Item::draw_horizontal_connector(int x1, int x2, int y, const Fl_Tre
y |= 1; // force alignment w/dot pattern
fl_line(x1,y,x2,y);
return;
- case FL_TREE_CONNECTOR_DOTTED:
- y |= 1; // force alignment w/dot pattern
- for ( int xx=x1; xx<=x2; xx++ ) {
- if ( !(xx & 1) ) fl_point(xx, y);
- }
+ case FL_TREE_CONNECTOR_DOTTED:
+ {
+ y |= 1; // force alignment w/dot pattern
+ for ( int xx=x1; xx<=x2; xx++ ) {
+ if ( !(xx & 1) ) fl_point(xx, y);
+ }
+ }
return;
case FL_TREE_CONNECTOR_NONE:
return;
@@ -394,12 +396,14 @@ void Fl_Tree_Item::draw_vertical_connector(int x, int y1, int y2, const Fl_Tree_
fl_line(x,y1,x,y2);
return;
case FL_TREE_CONNECTOR_DOTTED:
- y1 |= 1; // force alignment w/dot pattern
- y2 |= 1; // force alignment w/dot pattern
- for ( int yy=y1; yy<=y2; yy++ ) {
- if ( yy & 1 ) fl_point(x, yy);
- }
- return;
+ {
+ y1 |= 1; // force alignment w/dot pattern
+ y2 |= 1; // force alignment w/dot pattern
+ for ( int yy=y1; yy<=y2; yy++ ) {
+ if ( yy & 1 ) fl_point(x, yy);
+ }
+ }
+ return;
case FL_TREE_CONNECTOR_NONE:
return;
}