Project

General

Profile

Feature #685249

Port 'scale' feature to Gtk3 client?

Added by Jacob Nevins 2 months ago. Updated 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
gui-gtk-3
Target version:
Start date:
Due date:
% Done:

0%


Description

The current S2_6 situation is that Gtk3 clients have unfinished "zoom" (resize at render time) code that's disabled at compile time by default, and Gtk2 and Qt clients have "scale" (resize at tileset load time) that's included in the build.

While presumably we hope 'zoom' will obsolete 'scale' once it's working, that's unlikely to happen in 2.6; and from users' point of view, this breaks the usual rule that Gtk3 has a superset of the features of Gtk2, and rescaling the graphics is quite a popular feature.

Perhaps we should port the 'scale' feature to Gtk3 as an interim measure?

(I haven't looked into how hard it would be to port Gtk2 scale to Gtk3, particularly in such a way as to tiptoe round the compiled-out 'zoom' support. I suspect --with-zoom will have to disable 'scale'.)


Related issues

Related to Freeciv - Feature #685258: Enable zoom at level 2.0 in stable branches (S2_6 & S3_0) Closed

History

#1 Updated by Jacob Nevins 2 months ago

  • Subject changed from Port 'scale' feature to Gtk3 client to Port 'scale' feature to Gtk3 client?

FWIW, I've played a few turns of Gtk2 with 'scale' and it seems quite playable, even if the graphics aren't flawless.
I've played a few turns of Gtk3 with 'zoom', and while it also seems stable, the graphical glitches are more obvious.

#2 Updated by Marko Lindqvist 2 months ago

Jacob Nevins wrote:

I suspect --with-zoom will have to disable 'scale'.

Note that currently all that --with/out-zoom does is turning on/off user control of the zoom level ('+' and '-' keys, --zoom commandline parameter). The actual zooming code is always there, just zoom level is always 1.0 in --without-zoom builds.

#3 Updated by Jacob Nevins 2 months ago

Feature #685258 might be an alternative plan.

#4 Updated by Jacob Nevins 2 months ago

  • Related to Feature #685258: Enable zoom at level 2.0 in stable branches (S2_6 & S3_0) added

Also available in: Atom PDF