From af10e22140f34e25508a040820f8725df5e1c19d Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 28 Mar 2005 21:12:54 +0000 Subject: [PATCH] Made fluid compile under VicualC6 again. Unfortunatly , the wonderful 'print' addition crashes in fl_color_win32.cxx, line 72. Fixed a silly 'I have a great idea - wait - what was it again'-bug that would use a static buffer twice - although without causing any bugs. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4200 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/fluid.cxx | 2 +- src/Fl_Preferences.cxx | 2 +- visualc/fltk.lib.dsp | 4 ++++ visualc/fluid.dsp | 16 ++++++++++------ 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx index 77230f544..461205003 100644 --- a/fluid/fluid.cxx +++ b/fluid/fluid.cxx @@ -1083,7 +1083,7 @@ void print_menu_cb(Fl_Widget *, void *) { EndDoc(dialog.hDC); fl_gc = save_dc; - fl_window = save_window; + fl_window = save_win; fl_pop_clip(); // Free the print DC and return... diff --git a/src/Fl_Preferences.cxx b/src/Fl_Preferences.cxx index 54d55c8dc..18a66bfee 100644 --- a/src/Fl_Preferences.cxx +++ b/src/Fl_Preferences.cxx @@ -883,7 +883,7 @@ Fl_Preferences::Node *Fl_Preferences::Node::addChild( const char *path ) { sprintf( nameBuffer, "%s/%s", path_, path ); char *name = strdup( nameBuffer ); - Node *nd = find( nameBuffer ); + Node *nd = find( name ); free( name ); dirty_ = 1; return nd; diff --git a/visualc/fltk.lib.dsp b/visualc/fltk.lib.dsp index 7f7b3ab29..5b3f029f0 100644 --- a/visualc/fltk.lib.dsp +++ b/visualc/fltk.lib.dsp @@ -407,6 +407,10 @@ SOURCE=..\src\Fl_Progress.cxx # End Source File # Begin Source File +SOURCE=..\src\fl_read_image.cxx +# End Source File +# Begin Source File + SOURCE=..\src\fl_rect.cxx # End Source File # Begin Source File diff --git a/visualc/fluid.dsp b/visualc/fluid.dsp index b16f37044..b62ceef3e 100644 --- a/visualc/fluid.dsp +++ b/visualc/fluid.dsp @@ -43,7 +43,7 @@ RSC=rc.exe # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c -# ADD CPP /nologo /MD /GX /Ot /Op /Ob2 /I "." /I ".." /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "WIN32_LEAN_AND_MEAN" /D "VC_EXTRA_LEAN" /D "WIN32_EXTRA_LEAN" /YX /FD /c +# ADD CPP /nologo /MD /GX /Ot /Op /Ob2 /I "." /I ".." /I "../png" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "WIN32_LEAN_AND_MEAN" /D "VC_EXTRA_LEAN" /D "WIN32_EXTRA_LEAN" /YX /FD /c # SUBTRACT CPP /Os # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 @@ -71,7 +71,7 @@ LINK32=link.exe # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" # ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c -# ADD CPP /nologo /MDd /Gm /GX /ZI /Od /I "." /I ".." /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "WIN32_LEAN_AND_MEAN" /D "VC_EXTRA_LEAN" /D "WIN32_EXTRA_LEAN" /YX /FD /c +# ADD CPP /nologo /MDd /Gm /GX /ZI /Od /I "." /I ".." /I "../png" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "WIN32_LEAN_AND_MEAN" /D "VC_EXTRA_LEAN" /D "WIN32_EXTRA_LEAN" /YX /FD /c # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 # ADD BASE RSC /l 0x409 /d "_DEBUG" @@ -108,6 +108,10 @@ SOURCE=..\fluid\code.cxx # End Source File # Begin Source File +SOURCE=..\fluid\CodeEditor.cxx +# End Source File +# Begin Source File + SOURCE=..\fluid\factory.cxx # End Source File # Begin Source File @@ -152,15 +156,15 @@ SOURCE=..\fluid\function_panel.cxx # End Source File # Begin Source File +SOURCE=..\fluid\template_panel.cxx +# End Source File +# Begin Source File + SOURCE=..\fluid\undo.cxx # End Source File # Begin Source File SOURCE=..\fluid\widget_panel.cxx # End Source File -# Begin Source File - -SOURCE=..\fluid\CodeEditor.cxx -# End Source File # End Target # End Project