The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: TurfIt on September 21, 2010, 02:43:56 am

Title: [bug] r3787 CTDs on screen scrolling
Post by: TurfIt on September 21, 2010, 02:43:56 am
r3787 CTDs on me constantly when scrolling the screen. r3786 is fine. I notice graphics corruption in the scrolling message area at the bottom of the screen. The corruption is player color bits of vehicles that are hidden by the message. Reverting this section of code fixes the problem.

Code: [Select]
simgraph16.cc:2600
-      display_color_img_aux( (tile_raster_width != base_tile_raster_width  &&  images[n].zoom_data != NULL) ? images[n].zoom_data : images[n].base_data, xp+x, yp+y, h );
+      // clipping at poly lines?
+      if (number_of_clips>0) {
+        display_img_pc<colored>(h, xp+x, yp+y,  (tile_raster_width != base_tile_raster_width  &&  images[n].zoom_data != NULL) ? images[n].zoom_data : images[n].base_data);
+      }
+      else {
+        display_color_img_aux( (tile_raster_width != base_tile_raster_width  &&  images[n].zoom_data != NULL) ? images[n].zoom_data : images[n].base_data, xp+x, yp+y, h );
+      }
Title: Re: [bug] r3787 CTDs on screen scrolling
Post by: Dwachs on September 21, 2010, 06:39:05 am
Thank you for pointing out, where the problem originated from.

Should be fixed in 3809. Please retest.
Title: Re: [bug] r3787 CTDs on screen scrolling
Post by: TurfIt on September 21, 2010, 08:47:57 pm
No more crashes with r3809. Fixed.