bugBattle for Wesnoth - Bugs: bug #20435, New drawing logic for maps in...

Show feedback again

bug #20435: New drawing logic for maps in title and story screens

Submitted by:  Lari Nieminen <zookeeper>
Submitted on:  Mon Jan 14 10:55:23 2013  
Category: Feature RequestSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Graphics
Status: FixedPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Release: trunkOperating System: all

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Tue Mar 26 14:29:36 2013, comment #2:

Completely done for 1.11.2 according to lipkab on IRC.

Ignacio R. Morelle <shadowmaster>
Project Administrator
Mon Jan 21 08:59:26 2013, SVN revision 56113:

New scaling and tiling options for story screens. Partially implements bug #20435

(Browse SVN revision 56113)

B. Lipka <lipk>
Project Member
Mon Jan 14 10:55:23 2013, original submission:

Scaling maps to fill the screen is ugly, so the new maps feature a tileable background on which they may be drawn to eliminate the need for scaling the map itself in most cases. Some engine support is needed to make it work, though.

This is how the maps are intended to be drawn, both in the title screen as well as story screens:


1. Scaled (preserving aspect ratio) so that it fills the window in the vertical dimension.
2. Centered horizontally.
3. Tiled horizontally to both left and right, if window width is greater than the image width after the scaling done in step 1.


1. Downscaled (preserving aspect ratio) so that it fills the window in the vertical dimension, if the image height is greater than the window height.
2. If the window height exceeds 1440px, the map should be upscaled by multiplying its dimensions by (windowheight / 1440).
3. Centered both horizontally and vertically.

I have no specific suggestion for how this should be implemented WML-wise. One possibility might be to add all the required functionality to [part] and [image], and then allow the title screen to be defined using those same tags.

For testing purposes, the background image can be found at https://dl.dropbox.com/u/63964618/wesnoth/maps/wood_final.png

Lari Nieminen <zookeeper>
Project Member


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by shadowmaster (Posted a comment)
  • -unavailable- added by lipk (Updated the item)
  • -unavailable- added by zookeeper (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Mar 26 14:29:36 2013shadowmasterOpen/ClosedOpen=>Closed
    Mon Mar 18 11:45:08 2013lipkStatusNone=>Fixed
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup