Skip to content

Commit

Permalink
Merge pull request #451 from aginor/todofix
Browse files Browse the repository at this point in the history
Fix TODO by removing workaround for a resolved SDL issue.
  • Loading branch information
Vultraz committed Mar 13, 2016
2 parents 064944f + 7bc5e02 commit 40ffa6b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/display.cpp
Expand Up @@ -2242,15 +2242,6 @@ bool display::scroll(int xmove, int ymove, bool force)
SDL_BlitSurface(screen_copy,&srcrect,screen,&dstrect);
}

//This is necessary to avoid a crash in some SDL versions on some systems
//see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=462794
//FIXME remove this once the latest stable SDL release doesn't crash as 1.2.13 does
#ifdef _MSC_VER
__asm{cld};
#elif defined(__GNUG__) && (defined(__i386__) || defined(__x86_64__))
asm("cld");
#endif

// Invalidate locations in the newly visible rects

if (dy != 0) {
Expand Down

0 comments on commit 40ffa6b

Please sign in to comment.