Skip to content

Commit

Permalink
Disable FLTK print support
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed Jun 4, 2024
1 parent 1947edf commit 73d1d24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions source_files/fltk/CMake/options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -999,10 +999,7 @@ else(FLTK_USE_XRENDER)
endif(FLTK_USE_XRENDER)

#######################################################################
set(FL_NO_PRINT_SUPPORT FALSE)
if(X11_FOUND AND NOT FLTK_OPTION_PRINT_SUPPORT)
set(FL_NO_PRINT_SUPPORT TRUE)
endif(X11_FOUND AND NOT FLTK_OPTION_PRINT_SUPPORT)
set(FL_NO_PRINT_SUPPORT TRUE)
#######################################################################

#######################################################################
Expand Down
4 changes: 2 additions & 2 deletions source_files/fltk/src/Fl_Device.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,6 @@ Fl_PDF_File_Surface::~Fl_PDF_File_Surface() {
delete platform_surface_;
}

#endif // !defined(FL_NO_PRINT_SUPPORT)

/** Localizable text of the "PDF document settings" dialog */
const char * Fl_PDF_File_Surface::format_dialog_title = "PDF document settings";
/** Localizable text of the "PDF document settings" dialog */
Expand All @@ -184,3 +182,5 @@ const char * Fl_PDF_File_Surface::format_dialog_page_size = "Page Size:";
const char * Fl_PDF_File_Surface::format_dialog_default = "Set as default";
/** Localizable text of the "PDF document settings" dialog */
const char * Fl_PDF_File_Surface::format_dialog_orientation = "Orientation:";

#endif // !defined(FL_NO_PRINT_SUPPORT)

0 comments on commit 73d1d24

Please sign in to comment.