From 47d8b84733fd2fa09f180b0191bf0ba0c4ac0a42 Mon Sep 17 00:00:00 2001 From: Jens Hemprich <31758696+jenshemprich@users.noreply.github.com> Date: Thu, 23 Aug 2007 21:14:01 +0000 Subject: [PATCH] Outch, bits shifted in the wrong direction --- MacGLide/OpenGLide/grguSstGlide.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MacGLide/OpenGLide/grguSstGlide.cpp b/MacGLide/OpenGLide/grguSstGlide.cpp index 7574284..101b3eb 100644 --- a/MacGLide/OpenGLide/grguSstGlide.cpp +++ b/MacGLide/OpenGLide/grguSstGlide.cpp @@ -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