After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 80240 - games should be resizeable [smaller and larger]
games should be resizeable [smaller and larger]
Status: RESOLVED FIXED
Product: gnome-games-superseded
Classification: Deprecated
Component: general
2.17.x
Other All
: Normal enhancement
: gnome-2-22
Assigned To: gnome-games-general-maint
GNOME Games maintainers
: 105536 391022 414566 (view as bug list)
Depends on: 451906
Blocks: 391022 487071
 
 
Reported: 2002-04-29 17:08 UTC by bugzilla-gnome
Modified: 2009-12-16 04:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnect_resizable.patch (18.16 KB, patch)
2004-09-10 13:02 UTC, Paolo Borelli
committed Details | Review
test case for scalable graphics in gnobots (224.50 KB, image/svg+xml)
2006-04-19 14:11 UTC, Nicu Buculei
  Details

Description bugzilla-gnome 2002-04-29 17:08:11 UTC
Games like GLines are quite hard to use if you only
have a 480 pixel high screen.

One has to undock the menu to fit it on screen.

Gataxx/iagno has to be moved so the top is slightly off the
screen to see the bottom.

It'd be nice to have a zoom button to increase/decrease the size
of the game.
Comment 1 Rodd Clarkson 2002-04-29 23:21:14 UTC
This is a big problem in AisleRiot to.  Some of the minimum screen
sizes are bigger than 800x600 which is madness.  Any of these games
should be able to be played on a 640 x 480 screen.

Two things that would help AisleRoit would be to have the cards squash
when the piles get too long.  This used to happen in the old version
of freecell (I beleive) and it was a great feature.  Good enough that
the current version of WinXP does it.

Also, smaller cards would make things more useable.  Infact, instead
of having about a gazillion different options on what size font, and
how the suits look, (even though you can't see them - gratuitous plug
for bug 80167), maybe you could replace all this with the ability to
change the size of the cards, which would allow the window to be
smaller.  Default to the smallest size (which would look big enough on
an 640x480 screen) and people can make the cards bigger on larger
screen sizes if they choose.
Comment 2 Callum McKenzie 2003-01-16 02:34:23 UTC
The cards should be done in a scalable format (e.g. svg) and resize to
suit the window size (preferably expanding the window until it runs
out of screen space and then start shrinking the cards). Now you don't
have to worry about manually setting the card size at all. 
Comment 3 Ross Burton 2003-01-16 10:08:58 UTC
SVG cards.... we could....
Comment 4 Luis Villa 2003-08-20 01:28:09 UTC
Could also do SVG tiles for mahjongg. I noticed that some of the
current tiles are hard to read on even my fairly low-res laptop
screen- I can only imagine they'd be a real pain in the neck on
1600x1200. So... retitling this a bit to recognize that the bug should
ideally be a little more general.
Comment 5 Callum McKenzie 2003-08-20 01:36:42 UTC
Resizeability of all games is one of the stated goals of the 2.5
series (of course we won't get them all done, but aisleriot, mahjongg
and gnobots are all in need, gnomines and gnotravex are already done.)

Mahjongg is currently undergoing a major rewrite of some large chunks
of it's code. The drawing code is one part of this (it currently uses
a hacked version of gnome-canvas and is awfully slow). The plan is not
to do resizing immediately, but to have it in mind when the drawing
code is rewritten and once it is working properly the resizing (with
either pixmap or svg based tiles) should come easily. The hard bit is
making a set of svg tiles, but I've been meaning to learn how to draw
svg stuff for a while now :).
Comment 6 Callum McKenzie 2003-10-06 10:03:35 UTC
Mahjongg is now resizeable. Gnomine and Gnotravex were also resizeable
fin GNOME 2.4. The next two that really need work are aisleriot (for
the  already mentioned reasons) and gnobots (because the graphics are
too small on high-res screens). Others will follow as I get around to
it (it is a goal for 2.6, but I know what my free time looks like :).
Comment 7 Callum McKenzie 2004-01-06 10:01:22 UTC
glines is now resizeable. Aisleriot still hasn't been done yet :(.
Comment 8 Alan Horkan 2004-03-23 02:11:08 UTC
> Resizeability of all games is one of the stated goals of the 2.5

Do you think it will be possible to make the games scalable enought
that the GPE (Gnome Palmtop Enviroment) would be able to use these
games without minimal changes?  

> SVG Cards

If someone were to develop SVG cards they would make wonderful clipart
for reuse with Inkscape (or Sodipodi or whatever Vector graphics
software you prefer) and improve the whole Desktop even beyond Gnome
games.  

Comment 9 Callum McKenzie 2004-03-23 02:53:41 UTC
The palm-top question: In general I doubt it. While all the games I've
made scalable will work at low res none of them work well. Gnomine and
glines would probably work, but it'd probably be better to have
fixed-size graphics optimised for the target screen size. Gnotravex
and mahjongg would be complete disasters since the fiddly detail of
the numbers and the tiles doesn't work well with automatic scaling. In
general for really low resolutions graphics hand-designed specifically
for the target resolution are the way to go.

Comment 10 Callum McKenzie 2004-03-30 22:29:37 UTC
*** Bug 105536 has been marked as a duplicate of this bug. ***
Comment 11 Callum McKenzie 2004-04-19 10:19:27 UTC
Aisleriot is now resizable. It's in CVS now.

This leaves:

gnobots
gnibbles (there is a patch for this in bugzilla)
gnotski
gtali (mostly done already)
iagno/gataxx (will do as part of the merger)
same-gnome
gnome-stones
blackjack
gnometris
gnect
Comment 12 Callum McKenzie 2004-04-26 09:56:41 UTC
Gnibbles is resizeable, this leaves:

gnobots
gnotski
gtali (mostly done already)
iagno/gataxx (will do as part of the merger)
same-gnome
gnome-stones
blackjack
gnometris
gnect

Comment 13 William Jon McCann 2004-05-20 22:54:28 UTC
Blackjack is now resizeable.
Comment 14 Josselin Mouette 2004-07-06 20:33:09 UTC
There are SVG playing cards there: http://david.bellot.free.fr/
Comment 15 Paolo Borelli 2004-09-10 12:45:13 UTC
here is a patch that makes gnect resizable.
Comment 16 Paolo Borelli 2004-09-10 13:02:20 UTC
Created attachment 31470 [details] [review]
gnect_resizable.patch

here are some explanations to make reviewing easier:

main.c:
- the drawarea is packed into a gridframe
- connect to the configure event
- split the button_press and expose callbacks (not strictly related to
resizing, but while I was at it...)
- delete set_resizable(FALSE) and set_wmclass which is obsolete
- set a default size for the app (350x370, ok?) and a min size to avoid gtk
problems when scaling down a lot

gfx.[ch]:
- use tilesize and boardsize instead of width, height, tileh, tilew since our
board is square and it fits better with games-gridframe
- add pixbufs to hold the scaled versions
- remove always true arg from draw_all
- add gfx_resize & gfx_update_pixmaps: these funcs take care of the real
resizing
- fiddle a bit with gfx_load (not strictly related to resizing, but I ended up
with those changes as well... basically it now takes care of retrying with the
default theme instead of retrying in main.c)
- add a set_grid_style() so that gc doesn't need to be extern and a
change_theme() to use in prefs.c

prefs.c:
- explicetly set p.theme_id = val
- use the change_theme func
- include the micro cleanup reported in #152275
Comment 17 Callum McKenzie 2004-09-15 11:03:34 UTC
Only two problems Paolo: No ChangeLog entry, and you don't use gconf to save the
window size. I'll fix these two up.

Also, blackjack is resizeable so this leaves the list at:

gnobots
gnotski
gtali (mostly done already)
iagno/gataxx (will do as part of the merger)
same-gnome (underway)
gnome-stones
gnometris
Comment 18 Paolo Borelli 2004-09-15 11:33:31 UTC
gosh, I always forget the changelog entry when submitting patches to gnome
games... sorry about that.
About the gconf stuff, yes it's missing. Note that on the long run storing the
size in gconf is not right (gconf may be readonly)... however many other apps
(including the other resizable games) do the same, so I guess it is ok, until a
proper session management solution is provided by gtk/gnome.
Comment 19 Callum McKenzie 2004-09-15 23:17:08 UTC
Yeah, I know about the "who should keep track of window size" problems. As far
as I can tell conventional wisdom varies every few months. I keep it in gconf
because, despite the possiblity of failure, it works without having to deal with
any extra infrastructure. This is the sort of program where people want the
window to open at the last size they used it (because the information inside it
is essentially the same each time, as opposed to, say, an image viewer where it
depends on the size of the image).
Comment 20 Callum McKenzie 2004-10-31 08:59:13 UTC
Now that Richard has done Klotski the list is:

gnobots
gtali (mostly done already)
iagno/gataxx (will do as part of the merger)
same-gnome (underway)
gnome-stones
gnometris
Comment 21 Callum McKenzie 2004-12-22 10:24:53 UTC
Same GNOME has now been converted (actually completely rewritten). The remainder:

gnobots
gtali (mostly done already)
iagno/gataxx (will do as part of the merger)
gnome-stones
gnometris

Comment 22 Callum McKenzie 2005-08-08 07:55:18 UTC
Ataxx has now been made resizeable. The code can be found in the preview-2-13
branch in CVS.

Remaining:

gnobots
gtali (mostly done already)
iagno
gnome-stones
gnometris

Comment 23 Callum McKenzie 2005-10-06 06:12:13 UTC
gnometris too now.

Remaining:

gnobots
gtali (mostly done already)
iagno
gnome-stones



Comment 24 Callum McKenzie 2005-10-26 09:36:29 UTC
gnome-stones now drops off because we removed it from gnome-games. The list is now:

gnobots
gtali (mostly just widgets, so it mostly works already)
iagno
Comment 25 Nicu Buculei 2006-04-19 14:11:06 UTC
Created attachment 63868 [details]
test case for scalable graphics in gnobots

An exploration on how gnobots can look with scalable graphics: larger and nicer sprites.

An exercise: isometric grid and grid size different than the sprites sizes (those have the disadvantage of requiring a specific z-order).

(.svgz due to file size contraints on attachments)
Comment 26 Callum McKenzie 2006-04-19 19:40:20 UTC
I am currently working on the gnobots scaling code. The first cut (due in a day or so) will look pretty much like it does now. After that I'll play with it a little (it is almost essential to get some kind of grid drawn).
Comment 27 Callum McKenzie 2006-04-20 10:29:21 UTC
Robots now has primitive support for resizing. It all works, but still only supports PNG files and doesn't have any of the desperately needed improvements to the drawing engine (like a grid, and pango-rendered, translatable, text for the speech bubbles) let alone any of Nicu's suggestions.
Comment 28 Andreas Røsdal 2007-01-13 23:29:58 UTC
*** Bug 391022 has been marked as a duplicate of this bug. ***
Comment 29 Andreas Røsdal 2007-03-04 15:26:56 UTC
*** Bug 414566 has been marked as a duplicate of this bug. ***
Comment 30 Andreas Røsdal 2007-03-04 15:35:36 UTC
Anyone is very welcome to submit patches to make gnobots, gtali and iagno scalable.
Comment 31 Christian Persch 2008-03-25 12:05:51 UTC
Re-assigning to new default owner.
Comment 32 Robert Ancell 2009-12-16 04:38:16 UTC
Closing this as gnobots, gtali and iagno all fit into 480 resolution.
Well gtali fits into 600 pixels and I'll encourage anyone who needs it to be shorter to open a bug against it directly.