Opened 18 years ago

Closed 18 years ago

Last modified 13 months ago

#54 closed defect (fixed)

SDL: fullRedraw flag not reset

Reported by: SF/stauff1 Owned by: SF/strigeus
Priority: normal Component: --Other--
Keywords: Cc:
Game:

Description

Hi,

In sdl.cpp, the fullRedraw flag can be set when the
number of rectangles to be redrawn exceeds a
threshold, but not reset. This causes the program to
become unresponsive and hog a lot of cpu. The fix is
fairly simple, around line 254, add a line like so:

....
if (fullRedraw) {
SDL_UpdateRect(screen, 0,0,0,0);
+ fullRedraw = false;
#if defined(SHOW_AREA)
....

Cheers,

- Matthew Duggan

Ticket imported from: #493614. Ticket imported from: bugs/54.

Change History (4)

comment:1 by SF/strigeus, 18 years ago

Fixed in CVS

comment:2 by SF/strigeus, 18 years ago

Owner: set to SF/strigeus
Resolution: fixed

comment:3 by SF/strigeus, 18 years ago

Status: newclosed

comment:4 by digitall, 13 months ago

Component: --Other--
Note: See TracTickets for help on using tickets.