From 222538baad665f226546c2cfae417df3f6835a44 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 26 Jan 2016 20:31:43 +0000 Subject: [PATCH] Hacky version of font_x and font_xft, compiles on Fedora Linux git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11054 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Device.H | 2 +- src/Makefile | 5 ++--- src/drivers/Xlib/Fl_Xlib_Graphics_Driver_color.cxx | 4 ++-- src/fl_font.cxx | 3 +-- src/fl_set_fonts.cxx | 4 +++- src/makedepend | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/FL/Fl_Device.H b/FL/Fl_Device.H index d7b7ede7c..6621c390b 100644 --- a/FL/Fl_Device.H +++ b/FL/Fl_Device.H @@ -310,7 +310,7 @@ protected: #else // X11 // FIXME: it should not be required to include this file here. This is nothing that the user should have access to. -#include "src/cfg_gfx/xlib.H" +#include "src/drivers/Xlib/Fl_Xlib_Graphics_Driver.h" #endif diff --git a/src/Makefile b/src/Makefile index a44c41152..6c215109b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -497,10 +497,9 @@ Fl_cocoa.o: Fl_cocoa.mm fl_color.o: fl_dnd.o: fl_dnd_win32.cxx fl_dnd_x.cxx fl_draw_image.o: fl_draw_image_mac.cxx fl_draw_image_win32.cxx -fl_font.o: fl_font_x.cxx fl_font_xft.cxx fl_font_win32.cxx +fl_font.o: fl_font_win32.cxx fl_read_image.o: fl_read_image_mac.cxx fl_read_image_win32.cxx -fl_set_fonts.o: fl_set_fonts_mac.cxx fl_set_fonts_x.cxx \ - fl_set_fonts_xft.cxx fl_set_fonts_win32.cxx +fl_set_fonts.o: fl_set_fonts_mac.cxx fl_set_fonts_win32.cxx Fl_Printer.o: Fl_GDI_Printer.cxx Fl_PostScript.cxx Fl_Quartz_Printer.o: Fl_Quartz_Printer.mm fl_arci.o: ../FL/mac.H ../FL/win32.H diff --git a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_color.cxx b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_color.cxx index e7e9d0cf7..1f7561831 100644 --- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_color.cxx +++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_color.cxx @@ -31,7 +31,7 @@ // being used to index arrays. So I always copy them to an integer // before use. -# include "../Fl_XColor.H" +# include "../../Fl_XColor.H" # include # include # include @@ -92,7 +92,7 @@ static void figure_out_visual() { } static unsigned fl_cmap[256] = { -#include "../fl_cmap.h" // this is a file produced by "cmap.cxx": +#include "../../fl_cmap.h" // this is a file produced by "cmap.cxx": }; # if HAVE_OVERLAY diff --git a/src/fl_font.cxx b/src/fl_font.cxx index 02a6b8932..9308b4505 100644 --- a/src/fl_font.cxx +++ b/src/fl_font.cxx @@ -50,12 +50,11 @@ #elif defined(__APPLE__) # include "cfg_gfx/quartz_font.cxx" #elif USE_XFT -# include "fl_font_xft.cxx" +# include "drivers/Xlib/Fl_Xlib_Graphics_Driver_font_xft.cxx" #elif defined(FL_PORTING) # pragma message "FL_PORTING: implement font handling specifics in its own file" #else # include "drivers/Xlib/Fl_Xlib_Graphics_Driver_font_x.cxx" -# include "drivers/Xlib/Fl_Xlib_Graphics_Driver_font_xft.cxx" #endif // WIN32 #if defined(WIN32) || defined(__APPLE__) diff --git a/src/fl_set_fonts.cxx b/src/fl_set_fonts.cxx index ab92dc664..4a83768e7 100644 --- a/src/fl_set_fonts.cxx +++ b/src/fl_set_fonts.cxx @@ -27,10 +27,12 @@ #elif defined(__APPLE__) # include "fl_set_fonts_mac.cxx" #elif USE_XFT -# include "fl_set_fonts_xft.cxx" +//# include "fl_set_fonts_xft.cxx" +// now included for fl_font.cxx, but will be its own source code module in drivers/Xlib/Fl_Xlib_Graphics_Driver_font..." #elif defined(FL_PORTING) # pragma message "FL_PORTING: implement changes in font in its own file" #else +//# include "fl_set_fonts_x.cxx" // now included for fl_font.cxx, but will be its own source code module in drivers/Xlib/Fl_Xlib_Graphics_Driver_font..." #endif // WIN32 diff --git a/src/makedepend b/src/makedepend index 989701272..19d5edc00 100644 --- a/src/makedepend +++ b/src/makedepend @@ -917,7 +917,7 @@ fl_font.o: ../FL/Fl_Window.H ../FL/Enumerations.H ../FL/Fl_Window.H fl_font.o: ../FL/Fl_Group.H ../FL/Fl_Widget.H ../FL/Fl_Bitmap.H fl_font.o: ../FL/Fl_Image.H ../FL/Fl_Device.H ../FL/Fl_Plugin.H fl_font.o: ../FL/Fl_Preferences.H ../FL/Fl_Image.H ../FL/Fl_Bitmap.H -fl_font.o: ../FL/Fl_Pixmap.H ../FL/Fl_RGB_Image.H Fl_Font.H fl_font_xft.cxx +fl_font.o: ../FL/Fl_Pixmap.H ../FL/Fl_RGB_Image.H Fl_Font.H fl_gleam.o: ../FL/Fl.H ../FL/fl_utf8.h ../FL/Fl_Export.H ../FL/fl_types.h fl_gleam.o: ../FL/Enumerations.H ../FL/abi-version.h ../FL/fl_draw.H fl_gleam.o: ../FL/x.H ../FL/Fl_Window.H ../FL/Enumerations.H @@ -1018,7 +1018,7 @@ fl_set_font.o: flstring.h ../FL/Fl_Export.H ../config.h Fl_Font.H fl_set_fonts.o: ../FL/Fl.H ../FL/fl_utf8.h ../FL/Fl_Export.H ../FL/fl_types.h fl_set_fonts.o: ../FL/Enumerations.H ../FL/abi-version.h ../FL/x.H fl_set_fonts.o: ../FL/Fl_Window.H Fl_Font.H ../config.h flstring.h -fl_set_fonts.o: ../FL/Fl_Export.H fl_set_fonts_xft.cxx +fl_set_fonts.o: ../FL/Fl_Export.H fl_scroll_area.o: ../config.h ../FL/Fl.H ../FL/fl_utf8.h ../FL/Fl_Export.H fl_scroll_area.o: ../FL/fl_types.h ../FL/Enumerations.H ../FL/abi-version.h fl_scroll_area.o: ../FL/x.H ../FL/Fl_Window.H ../FL/fl_draw.H