fixed wrong optimized sizeof(COLOR) [is 4 instead of 2] caused overwriting unrelated data

This commit is contained in:
mightymax 2007-01-10 15:09:18 +00:00
parent d166860a5f
commit c950ca35d8
1 changed files with 2 additions and 2 deletions

View File

@ -423,7 +423,7 @@ static INLINE void GPU_ligne(Screen * screen, u16 l)
{
/* the formular would create only white, as (r + (31-r)) = 31 */
/* white = enable all bits */
memset(dst,0xFF, 256*sizeof(COLOR)) ;
memset(dst,0xFF, 256*2 /* sizeof(COLOR) */) ;
} else
{
@ -463,7 +463,7 @@ static INLINE void GPU_ligne(Screen * screen, u16 l)
{
/* the formular would create only black, as (r - r) = 0 */
/* black = disable all bits */
memset(dst,0, 256*sizeof(COLOR)) ;
memset(dst,0, 256*2 /* sizeof(COLOR) */) ;
} else
{