simon-git: puzzles (master): Simon Tatham

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Sat Oct 3 18:02:00 BST 2015


TL;DR:
  a800ff1 Fix switching to a larger puzzle size under GTK 2.

Repository:     git://git.tartarus.org/simon/puzzles.git
On the web:     http://tartarus.org/~simon-git/gitweb/?p=puzzles.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2015-10-03 18:02:00

commit a800ff16bb10d41ed749d9b16e3eb3505bf9345e
web diff http://tartarus.org/~simon-git/gitweb/?p=puzzles.git;a=commitdiff;h=a800ff16bb10d41ed749d9b16e3eb3505bf9345e;hp=e22a9c8396f1f0bd1c74cd8b738f5f9716760004
Author: Simon Tatham <anakin at pobox.com>
Date:   Sat Oct 3 17:57:01 2015 +0100

    Fix switching to a larger puzzle size under GTK 2.
    
    Commit 8b491946e had a bug: configure_area stopped doing most of its
    work if the new size already matched fe->w and fe->h, but in fact the
    GTK2 resize_fe() _already_ set up fe->w and fe->h for the new size. I
    managed not to notice, because I checked it all worked on GTK 3 but
    only tested resizing to a _smaller_ puzzle on GTK 2. Ahem.
    
    Now we don't change fe->w and fe->h at all until configure_area is
    called. Also, we initialise them to dummy values at setup time, so
    that configure_area won't compare the new size with uninitialised
    data.

 gtk.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)



More information about the tartarus-commits mailing list