Update of bug #20497 (project wesnoth):

                Severity:           4 - Important => 5 - Blocker            

    _______________________________________________________

Follow-up Comment #1:

Although this is not my field, I prepared a quick patch that seems to work:

Index: storyscreen/render.cpp
===================================================================
--- storyscreen/render.cpp      (revisione 56170)
+++ storyscreen/render.cpp      (copia locale)
@@ -151,6 +151,8 @@
                drect.w = layer->w;
                drect.x = (background_->w - layer->w) / 2;
                drect.y = (background_->h - layer->h) / 2;
+               if (drect.x < 0) { drect.x = 0; }
+               if (drect.y < 0) { drect.y = 0; }
 
                blit_surface(layer, NULL, background_, &drect);
                ASSERT_LOG(layer.null() == false, "Oops: a storyscreen part 
background
layer got NULL");

In the case in question, the image is positioned at y=0 and it's possible
again to play DiD. If there are no better solutions, I'll commit it.
Also, since this bug effectively prevents from playing a mainline content, I'm
raising its severity as blocker.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Messaggio inviato con/da Gna!
  http://gna.org/


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

Reply via email to