URL:
  <http://gna.org/bugs/?20497>

                 Summary: Crash for tall background images
                 Project: Battle for Wesnoth
            Submitted by: jamit
            Submitted on: Sun 10 Feb 2013 09:20:08 PM EST
                Category: Bug
                Severity: 4 - Important
                Priority: 5 - Normal
              Item Group: Graphics
                  Status: None
                 Privacy: Public
             Assigned to: lipk
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.11.1+svn (r56298)
        Operating System: Linux

    _______________________________________________________

Details:

Due to the change that allows multiple background images for a [story][part],
an unscaled background that is taller than the screen (or wider, most likely)
will cause the game to crash with an assertion failure. This can be readily
demonstrated by running Wesnoth (in a window, presumably) with a height less
than 600 and trying to start "Descent into Darkness". While this is an extreme
case, it really should not cause a crash.

I traced the cause to storyscreen/render.cpp around line 155. Line 155 is a
call to blit_surface(), and the fourth parameter to this call is drect. In the
situation that causes this crash, drect.y is negative, and that leads to the
assertion failure.

While I see why the crash occurs, I do not see enough of the intended behavior
to guess at what the fix is. So here's where I turn it over to someone else.




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?20497>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to