summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2020-03-12Fix when using Fl_Scroll inside Fl_Overlay_WindowManoloFLTK
2020-03-11Remove CodeWarrior "support"Albrecht Schlosser
Metrowerks CodeWarrior was an ancient macOS compiler (discontinued since 2005) that defined the macro __MWERKS__. Code using this macro and several comments have been removed.
2020-03-10Complete fix for "[fltk.general] scroll and overlay window" dated 7 march 2020.ManoloFLTK
2020-03-08Improve use of fl_scroll within Fl_Overlay_Window on macOS.ManoloFLTK
This is a partial fix for "[fltk.general] scroll and overlay window" dated 7 march 2020. Mixing of Fl_Scroll and Fl_Overlay_Window is now OK also on a retina display, but there are still problems when the window is scaled.
2020-03-08Update Fl_Text_Display documentationAlbrecht Schlosser
No code changes except minor formatting and trailing whitespace.
2020-03-03Merge remote-tracking branch 'refs/remotes/origin/master'ManoloFLTK
2020-03-03Fix for STR#3534 to draw correctly Fl_Tiled_Image's on non-display surfaces.ManoloFLTK
2020-03-03Clarify documentation of Fl_PackAlbrecht Schlosser
2020-03-02Clarify Fl_File_Chooser documentationAlbrecht Schlosser
2020-02-28Fl_Sys_Menu_Bar: make it strict equivalent of Fl_Menu_Bar outside macOSManoloFLTK
2020-02-22Fix the Fl_RGB_Image(Fl_Pixmap *pxm) c'tor when pxm is scaled.ManoloFLTK
2020-02-11Fix static analyzer issues in Fl_Text_DisplayAlbrecht Schlosser
Remove unused variables and unused code to silence warnings.
2020-02-11Fix static analyzer errors and warningsAlbrecht Schlosser
Fix several bugs found by scan-build (more to come). https://clang-analyzer.llvm.org/scan-build.html See also current travis-ci build log with static analyzer, e.g. https://travis-ci.com/fltk/fltk/jobs/285426415 (link may become invalid in the future).
2020-02-10X11: Fix X Input Methods (XIM) (STR 3502, 3192)Albrecht Schlosser
Revert commit 958d912ffcdb using 'XSetLocaleModifiers("@im=");' which was incorrect (STR 3192). Apply fix for STR 3502, using 'XSetLocaleModifiers("");' which appears to be the correct solution for using X Input Methods (XIM). This has also been backported to FLTK 1.3.6 in branch-1.3, see commit 219ae5e455e7943ffb35fdd5edbe13dcc6955423.
2020-02-10Implement fl_putenv() as cross-platform putenv()Albrecht Schlosser
2020-02-09Remove empty file from compilationAlbrecht Schlosser
2020-02-09Eliminate -Wunknown-pragmas and -Wsign-compare warnings on GCCdarealshinji
2020-02-09Restore macOS capacity to turn window fullscreen encompassing several screens.ManoloFLTK
2020-02-07Fix Fl_Cocoa_Window_Driver::resize when called before the window is show()'n.ManoloFLTK
2020-02-07Fix state of visible() flag after Fl_Window(x, y, w, h, t).ManoloFLTK
The doc states: "Top-level windows initially have visible() set to 0 and parent() set to NULL. Subwindows initially have visible() set to 1 and parent() set to the parent window pointer." The first statement was not satisfied when a window was constructed with the Fl_Window(x, y, w, h, t) constructor.
2020-02-06Fix computation of Fl_Window::decorated_h() on macOS when screen is scaled.ManoloFLTK
2020-02-03Move fl_font(face, size) to fl_draw.cxxAlbrecht Schlosser
I believe this is a better place. Also: add FL_EXPORT since it's no longer inline.
2020-02-03Fix regression calling fl_font() w/o draw contextAlbrecht Schlosser
According to the documentation fl_font(face, size) may be called "outside a draw context if necessary to call fl_width()". This worked in 1.3.5 but did not in 1.4 (so far). I reworded the docs to make clear that other measurement functions can be called as well and refactored the code to make sure that fl_font(face, size) will open the display if necessary.
2020-02-03Don't "export" X11 specific fl_open_display() functionAlbrecht Schlosser
The X11 specific overloaded function fl_open_display(Display *) has never been documented but exposed (and "exported" in the ABI) in FL/platform.H which is not necessary. This internal function is now static and no longer exposed in the ABI. Don't confuse with fl_open_display() w/o arguments which is still exported and declared in FL/platform.H.
2020-01-31Fix disabling of deprecated warningsAlbrecht Schlosser
Fix cut'n'paste error: needs #pragma pop instead of push.
2020-01-31Update Fl::keyboard_screen_scaling()Albrecht Schlosser
- make the internal variable static - make it callable after fl_open_display() - document that it's currently only usable to switch scaling off
2020-01-31Disable X11 "deprecated declaration" warningAlbrecht Schlosser
... for GCC >= 4.6 and clang compilers. This annoying warning exists on X11 (Linux/Unix/macOS) platforms because we need to use XKeycodeToKeysym() although it is deprecated. See STR 2913 for discussion and details.
2020-01-31Fix typoAlbrecht Schlosser
2020-01-31Add Fl::keyboard_screen_scaling(int) to control recognition of ctrl/+/-/0/ManoloFLTK
2020-01-31Add a "Preview" switch to the GTK native file chooser.ManoloFLTK
The button state is recorded in a preference so is recovered the next time the GTK file chooser runs.
2020-01-30New public static variable bool Fl_Image::register_images_doneManoloFLTK
Allows an app to detect whether fl_register_images() was called or not.
2020-01-30Protect against situation where HAVE_DLSYM && HAVE_DLFCN_H && ↵ManoloFLTK
!defined(RTLD_DEFAULT)
2020-01-27Restore compilability when HAVE_DLFCN_H = 0ManoloFLTK
2020-01-27Restore compilability when HAVE_DLFCN_H = 0ManoloFLTK
2020-01-24GTK printer chooser: add code to support choice of paper size and orientationManoloFLTK
2020-01-23Remove unnecessary extern declarationManoloFLTK
2020-01-22Fix preservation of the caller's locale when running GTK dialogs.ManoloFLTK
There are now 2 kinds of GTK libraries (V2 and V3) and two dialogs the file chooser and the printer chooser.
2020-01-20Fix Fl_PostScript_Graphics_Driver::clip_box()Albrecht Schlosser
2020-01-20Improve documentation of clipping functionsAlbrecht Schlosser
Clarify functionality of fl_not_clipped() and fl_clip_box(). Add developer documentation for Fl_Graphics_Driver::clip_box(). Documentation only, no code changes in this commit.
2020-01-19Have Fl_Quartz_Copy_Surface_Driver use retina resolution for resulting bitmapManoloFLTK
2020-01-18Use visible size information when copying macOS image from clipboard.ManoloFLTK
2020-01-17Make Fl::screen_scale(int, float) functional also after initial window display.ManoloFLTK
2020-01-16Fix DND in read-only Fl_Input (Fl_Output)Albrecht Schlosser
See report in fltk.coredev as of today (Jan 16, 2020): "Fl_Input in readonly mode - wrong behaviour". Summary: Drag and drop within a read-only Fl_Input (i.e. Fl_Output) widget would not insert the dragged text (correct) but removed the dragged text from the widget (error). This is now fixed.
2020-01-16Fix JIS Keyboard dead keysOKAMURA, Yasunobu
2020-01-16Don't include 'src/flstring.h' in menubar demoAlbrecht Schlosser
src/flstring.h should only be used in library code because it includes <config.h>. Document this fact in src/flstring.h.
2020-01-15Fix uninitialized vars in calls to fl_clip_box() (issue #6)Albrecht Schlosser
The main fixes are only to avoid static code analyzer warnings reported in issue #5, but there are also minor bug fixes included. These bug fixes are more of theoretical concerns though. Close #6.
2020-01-15Slightly improve Fl_Quartz_Graphics_Driver::copy_offscreen() when macOS ≥ 10.4ManoloFLTK
2020-01-14Merge remote-tracking branch 'refs/remotes/origin/master'Matthias Melcher
2020-01-14Fixed some documentation for Fl_Preferences and fl_make_path.Matthias Melcher
2020-01-14Fix typo in commentManoloFLTK