Article #1531: FLTK 1.4.x Weekly Snapshot, r12240

  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Articles | Show Comments | Submit Comment ]

Article #1531: FLTK 1.4.x Weekly Snapshot, r12240

Created at 03:00 May 19, 2017 by mike

A new weekly snapshot of FLTK 1.4.x (r12240) is now available on the download page:

    http://www.fltk.org/software.php?VERSION=fltk-1.4.x-r12240

Commit Log:

------------------------------------------------------------------------
r12240 | manolo | 2017-05-18 13:26:34 -0400 (Thu, 18 May 2017) | 1 line

Add void fl_scale_offscreen(Fl_Offscreen &ctx) to support the rescaling of
an offscreen buffer.
------------------------------------------------------------------------
r12239 | manolo | 2017-05-17 07:54:18 -0400 (Wed, 17 May 2017) | 38 lines

Introduce HiDPI + rescaling support for the X11 platform (+ partial support
for WIN32)

Corresponds to STR #3320
1) HiDPI support consists in detecting the adequate scaling factor for the
screen on which
FLTK maps a window, and scaling all FLTK units by this factor. FLTK tries
to detect the correct
value of this factor at startup (see more details below). Environment
variable
FLTK_SCALING_FACTOR can also be used to set this value.
2) Rescaling support consists in changing the scaling factor of all FLTK
windows
in reply to ctrl/+/-/0/ keystrokes.

More details for the various platforms :

- X11: Support is very advanced. Some details need still to be improved.
Automatic detection of the correct starting value of the scaling factor
works well
with the gnome desktop. The present code contains no support for this on
other desktops.  FLTK_SCALING_FACTOR provides a workaround.

-WIN32: Support is incomplete at this point, although many test
applications have partial or complete HiDPI and scaling support.
The current value of the system's scaling factor is correctly detected
at application startup. Apps respond to changes of this value in real time.
Support needs to define the FLTK_HIDPI_SUPPORT preprocessor variable
at compile time. This way, standard builds produce a code with the
default WIN32 HiDPI support, that is, where all graphics goes to an
internal
buffer that gets enlarged by the system and then mapped to the HiDPI
display. To experiment with (or develop) the new HiDPI support requires
a modified build procedure in which  FLTK_HIDPI_SUPPORT is defined
at compile time. When the support will be complete, the requirement for the
definition of this preprocessor variable will be removed. The present
commit
contains support for a single scaling factor. Eventually, per-screen
scaling
factors should be implemented, as done for X11.

- MacOS: this commit does not give new HiDPI for this platform.
Eventually, window rescaling in reply to command/+/-/0/ is desirable.
Per-screen scaling factor makes no sense on this platform because
the OS itself takes care of the difference between the resolutions of
traditional and retina displays.

------------------------------------------------------------------------
r12238 | AlbrechtS | 2017-05-15 11:35:30 -0400 (Mon, 15 May 2017) | 1 line

Fix typo.
------------------------------------------------------------------------
r12237 | AlbrechtS | 2017-05-15 11:30:52 -0400 (Mon, 15 May 2017) | 4 lines

Allow to disable shadows in Fl_Clock and derived widgets.

As discussed on 2017-05-15 in fltk.general, thread "Fl_clock".

------------------------------------------------------------------------
r12236 | AlbrechtS | 2017-05-15 10:26:02 -0400 (Mon, 15 May 2017) | 2 lines

Improve and clarify Fl_Clock documentation.

------------------------------------------------------------------------
Download | Home Page | Listing ]

Comments

Submit Comment ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2015 by Bill Spitzak and others. This project is hosted by Seriss Corporation. Please report site problems to 'erco@seriss.com'.