From 875e9b35d70d88b2de3fdb7b57e4fecd8f35d39a Mon Sep 17 00:00:00 2001
From: Michael Fitzmayer <[EMAIL REDACTED]>
Date: Wed, 26 Oct 2022 15:19:28 +0200
Subject: [PATCH] N-Gage: additional cleanup
---
src/video/ngage/SDL_ngageframebuffer.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/video/ngage/SDL_ngageframebuffer.cpp b/src/video/ngage/SDL_ngageframebuffer.cpp
index a67fa5a8a021..98ff9ff71ad1 100644
--- a/src/video/ngage/SDL_ngageframebuffer.cpp
+++ b/src/video/ngage/SDL_ngageframebuffer.cpp
@@ -220,10 +220,9 @@ void DirectDraw(_THIS, int numrects, SDL_Rect *rects, TUint16* screenBuffer)
TInt i;
- //const TInt sourceNumBytesPerPixel = ((screen->format->BitsPerPixel-1) >> 3) + 1;
TDisplayMode displayMode = phdata->NGAGE_DisplayMode;
const TInt sourceNumBytesPerPixel = ((GetBpp(displayMode)-1) / 8) + 1;
- //
+
const TPoint fixedOffset = phdata->NGAGE_ScreenOffset;
const TInt screenW = screen->w;
const TInt screenH = screen->h;
@@ -383,7 +382,6 @@ void DirectUpdate(_THIS, int numrects, SDL_Rect *rects)
DirectDraw(_this, numrects, rects, screenBuffer);
}
- //TRect rect2 = TRect(phdata->NGAGE_WsWindow.Size());
for (int i = 0; i < numrects; ++i)
{
TInt aAx = rects[i].x;