Mercurial > mplayer.hg
comparison libvo/vo_tdfxfb.c @ 7117:4e4d3026a1ca
fixed possible 'DoS' bug
author | alex |
---|---|
date | Wed, 28 Aug 2002 18:38:41 +0000 |
parents | 3c84ee5e7da1 |
children | eca7dbad0166 |
comparison
equal
deleted
inserted
replaced
7116:e751a2b0991d | 7117:4e4d3026a1ca |
---|---|
156 /* There needs to be some sort of delay here or else things seriously screw up. | 156 /* There needs to be some sort of delay here or else things seriously screw up. |
157 Causes the image to not be the right size on screen if this isn't like this. | 157 Causes the image to not be the right size on screen if this isn't like this. |
158 A printf before the memset call also seems to work, but this made more sense | 158 A printf before the memset call also seems to work, but this made more sense |
159 since it actually checks the status of the card. | 159 since it actually checks the status of the card. |
160 */ | 160 */ |
161 do { | 161 /* first wait for the card to be ready, do not try to write every time - alex */ |
162 memset(vidpage, 0, screenwidth * screenheight * screendepth); | 162 do {} while((reg_IO->status & 0x1f) < 1); |
163 } while((reg_IO->status & 0x1f) < 1); | 163 memset(vidpage, 0, screenwidth * screenheight * screendepth); |
164 | 164 |
165 if(vo_doublebuffering) { | 165 if(vo_doublebuffering) { |
166 memset(hidpage, 0, screenwidth * screenheight * screendepth); | 166 memset(hidpage, 0, screenwidth * screenheight * screendepth); |
167 } | 167 } |
168 } | 168 } |