aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-01-06 21:01:49 +0100
committerEugene Sandulenko2019-11-13 22:07:08 +0100
commit4531c5b110aa35db05492042342006381314c338 (patch)
tree95a42caa3487f7064f6a2badaa588cb906de23d7
parent1b102b3aa8fb7887db72b3b47f8d2aa13a6f04b1 (diff)
downloadscummvm-rg350-4531c5b110aa35db05492042342006381314c338.tar.gz
scummvm-rg350-4531c5b110aa35db05492042342006381314c338.tar.bz2
scummvm-rg350-4531c5b110aa35db05492042342006381314c338.zip
GRIFFON: Removed rendering artifacts
-rw-r--r--engines/griffon/engine.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/griffon/engine.cpp b/engines/griffon/engine.cpp
index d339ace9b6..c85bc70522 100644
--- a/engines/griffon/engine.cpp
+++ b/engines/griffon/engine.cpp
@@ -1331,7 +1331,7 @@ void GriffonEngine::game_configmenu() {
cloudimg->blit(*videobuffer, 0, 0, Graphics::FLIP_NONE, &rcDest);
cloudimg->setAlpha(64, true);
- configwindow->blit(*videobuffer);
+ videobuffer->copyRectToSurface(configwindow->getPixels(), configwindow->pitch, 0, 0, configwindow->w, configwindow->h);
int sy = SY;
@@ -3212,7 +3212,7 @@ void GriffonEngine::game_drawplayer() {
void GriffonEngine::game_drawview() {
Common::Rect rc;
- mapbg->blit(*videobuffer);
+ videobuffer->copyRectToSurface(mapbg->getPixels(), mapbg->pitch, 0, 0, mapbg->w, mapbg->h);
game_updspellsunder();
@@ -3266,7 +3266,7 @@ void GriffonEngine::game_endofgame() {
videobuffer2->fillRect(Common::Rect(0, 0, videobuffer2->w, videobuffer2->h), 0);
videobuffer3->fillRect(Common::Rect(0, 0, videobuffer3->w, videobuffer3->h), 0);
- videobuffer->blit(*videobuffer2);
+ videobuffer2->copyRectToSurface(videobuffer->getPixels(), videobuffer->pitch, 0, 0, videobuffer->w, videobuffer->h);
float ld = 0;
int ldstop = 0;
@@ -3295,8 +3295,8 @@ void GriffonEngine::game_endofgame() {
videobuffer->fillRect(Common::Rect(0, 0, videobuffer->w, videobuffer->h), 0);
videobuffer->setAlpha(ya);
- videobuffer2->blit(*videobuffer3);
- videobuffer->blit(*videobuffer3);
+ videobuffer3->copyRectToSurface(videobuffer2->getPixels(), videobuffer2->pitch, 0, 0, videobuffer2->w, videobuffer2->h);
+ videobuffer3->copyRectToSurface(videobuffer->getPixels(), videobuffer->pitch, 0, 0, videobuffer->w, videobuffer->h);
g_system->copyRectToScreen(videobuffer3->getPixels(), videobuffer3->pitch, 0, 0, videobuffer3->w, videobuffer3->h);
g_system->updateScreen();
@@ -3396,7 +3396,7 @@ void GriffonEngine::game_endofgame() {
ticks1 = ticks;
int y1 = 0;
- videobuffer->blit(*videobuffer2);
+ videobuffer2->copyRectToSurface(videobuffer->getPixels(), videobuffer->pitch, 0, 0, videobuffer->w, videobuffer->h);
do {
if (ticks < ticks1 + 1500) {
@@ -3442,7 +3442,7 @@ void GriffonEngine::game_endofgame() {
y1 = 0;
do {
- theendimg->blit(*videobuffer);
+ videobuffer->copyRectToSurface(theendimg->getPixels(), theendimg->pitch, 0, 0, theendimg->w, theendimg->h);
y1 = 255;
if (ticks < ticks1 + 1000) {