[Scummvm-git-logs] scummvm master -> df8776b191eef0584d8c3e21d1a8880f392fc3c0
aquadran
noreply at scummvm.org
Mon Dec 20 11:23:50 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
df8776b191 GRIM: Removed dead code
Commit: df8776b191eef0584d8c3e21d1a8880f392fc3c0
https://github.com/scummvm/scummvm/commit/df8776b191eef0584d8c3e21d1a8880f392fc3c0
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2021-12-20T12:23:43+01:00
Commit Message:
GRIM: Removed dead code
Changed paths:
engines/grim/gfx_tinygl.cpp
diff --git a/engines/grim/gfx_tinygl.cpp b/engines/grim/gfx_tinygl.cpp
index 851b129d43..c04a925657 100644
--- a/engines/grim/gfx_tinygl.cpp
+++ b/engines/grim/gfx_tinygl.cpp
@@ -1512,7 +1512,6 @@ void GfxTinyGL::readPixels(int x, int y, int width, int height, uint8 *buffer) {
Graphics::Surface glBuffer;
TinyGL::getSurfaceRef(glBuffer);
uint8 r, g, b;
- int pos = x + y * _screenWidth;
for (int i = 0; i < height; ++i) {
for (int j = 0; j < width; ++j) {
if ((j + x) >= _screenWidth || (i + y) >= _screenHeight) {
@@ -1527,7 +1526,6 @@ void GfxTinyGL::readPixels(int x, int y, int width, int height, uint8 *buffer) {
buffer[3] = 255;
buffer += 4;
}
- pos += _screenWidth;
}
}
More information about the Scummvm-git-logs
mailing list