# HG changeset patch # User alex # Date 1030559921 0 # Node ID 4e4d3026a1ca014b1c7e3c95b125699229227199 # Parent e751a2b0991dd2163d91ba25a9daa3e66be3d6df fixed possible 'DoS' bug diff -r e751a2b0991d -r 4e4d3026a1ca libvo/vo_tdfxfb.c --- a/libvo/vo_tdfxfb.c Wed Aug 28 17:14:02 2002 +0000 +++ b/libvo/vo_tdfxfb.c Wed Aug 28 18:38:41 2002 +0000 @@ -158,9 +158,9 @@ A printf before the memset call also seems to work, but this made more sense since it actually checks the status of the card. */ - do { - memset(vidpage, 0, screenwidth * screenheight * screendepth); - } while((reg_IO->status & 0x1f) < 1); + /* first wait for the card to be ready, do not try to write every time - alex */ + do {} while((reg_IO->status & 0x1f) < 1); + memset(vidpage, 0, screenwidth * screenheight * screendepth); if(vo_doublebuffering) { memset(hidpage, 0, screenwidth * screenheight * screendepth);