aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/freeze.cpp
diff options
context:
space:
mode:
authoryinsimei2017-06-18 08:03:22 +0200
committerEugene Sandulenko2017-07-13 18:27:45 +0200
commit4b941e16dbc21487af4e0e442bf27527d0068dcc (patch)
tree479fa434201581380854b3b3dd4da78d9aa51d32 /engines/sludge/freeze.cpp
parent83926d07a379713c3719cc5745d2eab16ffcf3c5 (diff)
downloadscummvm-rg350-4b941e16dbc21487af4e0e442bf27527d0068dcc.tar.gz
scummvm-rg350-4b941e16dbc21487af4e0e442bf27527d0068dcc.tar.bz2
scummvm-rg350-4b941e16dbc21487af4e0e442bf27527d0068dcc.zip
SLUDGE: remove a low-level graphic loop
Diffstat (limited to 'engines/sludge/freeze.cpp')
-rw-r--r--engines/sludge/freeze.cpp36
1 files changed, 8 insertions, 28 deletions
diff --git a/engines/sludge/freeze.cpp b/engines/sludge/freeze.cpp
index 2d8a7bcb06..182ffcfef6 100644
--- a/engines/sludge/freeze.cpp
+++ b/engines/sludge/freeze.cpp
@@ -70,37 +70,17 @@ void freezeGraphics() {
freezeSurface.create(w, h, *g_sludge->getScreenPixelFormat());
// Temporarily disable AA
+#if 0
int antiAlias = gameSettings.antiAlias;
gameSettings.antiAlias = 0;
-
- int x = 0;
- while (x < winWidth) {
- int y = 0;
-
- if (winWidth - x < realWinWidth) {
- w = winWidth - x;
- } else {
- w = realWinWidth;
- }
-
- while (y < winHeight) {
-
- if (winHeight - y < realWinHeight) {
- h = winHeight - y;
- } else {
- h = realWinHeight;
- }
- drawBackDrop();// Draw the room
- drawZBuffer(cameraX, cameraY, false);
- drawPeople();// Then add any moving characters...
- freezeSurface.copyFrom(renderSurface);
-
- y += h;
- }
- x += w;
- }
-
+#endif
+ drawBackDrop();// Draw the room
+ drawZBuffer(cameraX, cameraY, false);
+ drawPeople();// Then add any moving characters...
+ freezeSurface.copyFrom(renderSurface);
+#if 0
gameSettings.antiAlias = antiAlias;
+#endif
}
bool freeze() {