FLTK logo

Article #1541: FLTK 1.4.x Weekly Snapshot, r12360

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Articles | Show Comments | Submit Comment ]

Article #1541: FLTK 1.4.x Weekly Snapshot, r12360

Created at 00:00 Jul 28, 2017 by mike

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

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

Commit Log:

------------------------------------------------------------------------
r12360 | manolo | 2017-07-27 11:11:33 -0400 (Thu, 27 Jul 2017) | 1 line

IsIconic() is the adequate WINAPI function to detect a minimised window.
------------------------------------------------------------------------
r12359 | manolo | 2017-07-27 10:48:27 -0400 (Thu, 27 Jul 2017) | 1 line

Simpler initialisation of the 'scale' local variable in WndProc().
------------------------------------------------------------------------
r12358 | manolo | 2017-07-27 10:38:35 -0400 (Thu, 27 Jul 2017) | 1 line

Rename Fl_Window_Driver::in_resize_after_scale_change to 'is_a_rescale'
which is more expressive.
------------------------------------------------------------------------
r12357 | manolo | 2017-07-27 04:30:20 -0400 (Thu, 27 Jul 2017) | 1 line

Fix window iconize/deiconize when multiple screens with distinct scaling
factors.
------------------------------------------------------------------------
r12356 | AlbrechtS | 2017-07-26 08:32:13 -0400 (Wed, 26 Jul 2017) | 9 lines

Fix confusing behavior of class Fl_Text_Selection.

Fl_Text_Selection got a new method length() and returns 0 in length()
and in all offsets (start(), end(), position()) if no text is selected
(selected() == false).

The behavior in FLTK 1.3 and earlier versions (returning undefined
values if !selected()) was confusing.

------------------------------------------------------------------------
r12355 | manolo | 2017-07-26 03:45:59 -0400 (Wed, 26 Jul 2017) | 1 line

X11 platform, resize window when moved across screens: remove hide()/show()
calls.
------------------------------------------------------------------------
r12354 | AlbrechtS | 2017-07-25 14:44:19 -0400 (Tue, 25 Jul 2017) | 10
lines

Fix blocks demo keyboard handling, add new shortcut.

The blocks demo was unintentionally intercepting ctrl/+ which was
introduced in FLTK 1.4.0 to change scaling for HiDPI screens. Now this
is separated: use ctrl/+/-/0 to change scaling, use '+' alone to change
the game level.

The new keyboard shortcut ALT+SHIFT+H allows users to reset their high
scores without editing the preferences file.

------------------------------------------------------------------------
r12353 | AlbrechtS | 2017-07-25 14:15:52 -0400 (Tue, 25 Jul 2017) | 18
lines

Fix test/blocks "runaway timer" bug.

Bug #1: When entering the next level an _additional_ timeout was started,
hence multiple timers would run in parallel and increase the game's speed
more than (supposedly) intended.

Bug #2: When the game was over, these additional timers were not stopped,
hence level 1 was never again as slow as it should be.

This is fixed in this commit. Additionally the timer values are defined
as preprocessor macros (constants) for easier fine tuning. To compensate
for the lower speed in higher levels the LEVEL_FACTOR was reduced from
0.95 to 0.90 so the higher levels are slightly faster than without this
fix.

Note: the result of this fix (generally less speed increase per level)
may result in higher scores.

------------------------------------------------------------------------
r12352 | AlbrechtS | 2017-07-25 13:25:51 -0400 (Tue, 25 Jul 2017) | 7 lines

test/blocks: improve timer test code.

This commit does not change operative code but adds the ability to test
the timer callback under Windows and improves the timer statistics.

The code has been formatted in some parts, but not "everywhere".

------------------------------------------------------------------------
r12351 | manolo | 2017-07-25 11:28:43 -0400 (Tue, 25 Jul 2017) | 1 line

Remove virtual Fl_Window_Driver::reuse_icons() no longer useful after
r.12349.
------------------------------------------------------------------------
r12350 | manolo | 2017-07-25 07:31:19 -0400 (Tue, 25 Jul 2017) | 1 line

Remove Fl_Window_Driver::reuse_cursor() that is no longer used since commit
r12349.
------------------------------------------------------------------------
r12349 | manolo | 2017-07-25 06:57:24 -0400 (Tue, 25 Jul 2017) | 10 lines

Rewrite Fl_Window_Driver::resize_after_scale_change() removing calls to
Fl_Window::hide() and Fl_Window::show().

Windows are now rescaled with a call to Fl_Window::resize() which has been
slightly modified.
Static member variable bool Fl_Window_Driver::in_resize_after_scale_change
is created,
and is true if and only if Fl_Window::resize() is called by
Fl_Window_Driver::resize_after_scale_change().
This new flag allows Fl_Window::resize() to perform correctly the rescaling
of the window.
Fl_Gl_Window::resize() and Fl_Double_Window::resize() also consult the
value of
the Fl_Window_Driver::in_resize_after_scale_change flag.
The platform-specific Fl_WinAPI_Window_Driver::resize() and
Fl_X11_Window_Driver::resize()
also use  the Fl_Window_Driver::in_resize_after_scale_change flag.
------------------------------------------------------------------------
r12348 | manolo | 2017-07-24 11:20:59 -0400 (Mon, 24 Jul 2017) | 1 line

Remove useless statement.
------------------------------------------------------------------------
r12347 | manolo | 2017-07-24 02:32:26 -0400 (Mon, 24 Jul 2017) | 1 line

Fix incorrect difference between branches 1.3 and 1.4 in an
Fl_Overlay_Window constructor.
------------------------------------------------------------------------
r12346 | AlbrechtS | 2017-07-22 04:43:14 -0400 (Sat, 22 Jul 2017) | 2 lines

Update list of files excluded from documentation.

------------------------------------------------------------------------

Download | Home Page | Listing ]


Comments

Submit Comment ]
 
 

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