Outch, bits shifted in the wrong direction

This commit is contained in:
Jens Hemprich 2007-08-23 21:14:01 +00:00
parent b8e224a059
commit 47d8b84733
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ grSstWinOpen(FxU32 hwnd,
// although most games will use 16bit corlor formats only
Glide.FrameBuffer.Address = (FxU16*) AllocFrameBuffer(Glide.WindowTotalPixels + openglpixels, 4);
// >> 1 as the framebuffer is allocated for 32 bit color formats but the pointer is declared as a short
Glide.TempBuffer.Address = &Glide.FrameBuffer.Address[Glide.WindowTotalPixels >> 1];
Glide.TempBuffer.Address = &Glide.FrameBuffer.Address[Glide.WindowTotalPixels << 1];
memset(Glide.FrameBuffer.Address, 0, Glide.WindowTotalPixels * sizeof(FxU32));
memset(Glide.TempBuffer.Address, 0, openglpixels * sizeof(FxU32));
// Prealloc readbuffer for Carmageddon, because allocating it on demand