mail[Wesnoth-commits] r44651 - /trunk/src/storyscreen/render.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by guillaume . melquiond on July 24, 2010 - 19:16:
Author: silene
Date: Sat Jul 24 19:16:02 2010
New Revision: 44651

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44651&view=rev
Log:
Fixed handling of keypress after skip period.

Modified:
    trunk/src/storyscreen/render.cpp

Modified: trunk/src/storyscreen/render.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/storyscreen/render.cpp?rev=44651&r1=44650&r2=44651&view=diff
==============================================================================
--- trunk/src/storyscreen/render.cpp (original)
+++ trunk/src/storyscreen/render.cpp Sat Jul 24 19:16:02 2010
@@ -446,7 +446,9 @@
        surface scan_dst = video_.getSurface();
        bool scan_finished = false;
        while(true) {
-               if(!(scan_finished = scan.y >= txtsurf->h)) {
+               scan_finished = scan.y >= txtsurf->h;
+               if (!scan_finished)
+               {
                        //dstrect.x = text_x_;
                        dstrect.y = fix_text_y + scan.y + storybox_padding;
                        // NOTE: ::blit_surface() screws up with antialiasing 
and hinting when
@@ -457,6 +459,7 @@
                        update_rect(dstrect);
                        ++scan.y;
                }
+               else skip_ = true;
 
                if (handle_interface()) break;
 




Related Messages


Powered by MHonArc, Updated Sat Jul 24 19:20:14 2010