[Scummvm-git-logs] scummvm master -> 8e8199f6afd771749308aef40f307f000d7a54e7

sev- sev at scummvm.org
Sat Sep 3 21:31:21 CEST 2016


This automated email contains information about 3 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
c2f5c48068 DINGUX: Fix OSD performance when OSD is not drawn
57ae1cb89d GPH: Fix OSD performance when OSD is not drawn
8e8199f6af LINUXMOTO: Fix OSD performance when OSD is not drawn


Commit: c2f5c48068b921690e7368b006ec4478b38bd448
    https://github.com/scummvm/scummvm/commit/c2f5c48068b921690e7368b006ec4478b38bd448
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-09-03T21:30:04+02:00

Commit Message:
DINGUX: Fix OSD performance when OSD is not drawn

Changed paths:
    backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp



diff --git a/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp b/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp
index af44acd..0938be2 100644
--- a/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp
+++ b/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp
@@ -417,7 +417,8 @@ void DINGUXSdlGraphicsManager::internUpdateScreen() {
 		drawMouse();
 
 #ifdef USE_OSD
-		SDL_BlitSurface(_osdSurface, 0, _hwscreen, 0);
+		if (_osdMessageAlpha != SDL_ALPHA_TRANSPARENT)
+			SDL_BlitSurface(_osdSurface, 0, _hwscreen, 0);
 #endif
 		// Finally, blit all our changes to the screen
 		SDL_UpdateRects(_hwscreen, _numDirtyRects, _dirtyRectList);


Commit: 57ae1cb89d62de32320e77c3807c91c05d729b62
    https://github.com/scummvm/scummvm/commit/57ae1cb89d62de32320e77c3807c91c05d729b62
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-09-03T21:30:40+02:00

Commit Message:
GPH: Fix OSD performance when OSD is not drawn

Changed paths:
    backends/graphics/gph/gph-graphics.cpp



diff --git a/backends/graphics/gph/gph-graphics.cpp b/backends/graphics/gph/gph-graphics.cpp
index 4aae11d..bd0f246 100644
--- a/backends/graphics/gph/gph-graphics.cpp
+++ b/backends/graphics/gph/gph-graphics.cpp
@@ -440,7 +440,8 @@ void GPHGraphicsManager::internUpdateScreen() {
 		drawMouse();
 
 #ifdef USE_OSD
-		SDL_BlitSurface(_osdSurface, 0, _hwscreen, 0);
+		if (_osdMessageAlpha != SDL_ALPHA_TRANSPARENT)
+			SDL_BlitSurface(_osdSurface, 0, _hwscreen, 0);
 #endif
 		// Finally, blit all our changes to the screen
 		SDL_UpdateRects(_hwscreen, _numDirtyRects, _dirtyRectList);


Commit: 8e8199f6afd771749308aef40f307f000d7a54e7
    https://github.com/scummvm/scummvm/commit/8e8199f6afd771749308aef40f307f000d7a54e7
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-09-03T21:30:55+02:00

Commit Message:
LINUXMOTO: Fix OSD performance when OSD is not drawn

Changed paths:
    backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp



diff --git a/backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp b/backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp
index 64b4c96..a69cba2 100644
--- a/backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp
+++ b/backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp
@@ -451,7 +451,8 @@ void LinuxmotoSdlGraphicsManager::internUpdateScreen() {
 		drawMouse();
 
 #ifdef USE_OSD
-		SDL_BlitSurface(_osdSurface, 0, _hwscreen, 0);
+		if (_osdMessageAlpha != SDL_ALPHA_TRANSPARENT)
+			SDL_BlitSurface(_osdSurface, 0, _hwscreen, 0);
 #endif
 		// Finally, blit all our changes to the screen
 		SDL_UpdateRects(_hwscreen, _numDirtyRects, _dirtyRectList);





More information about the Scummvm-git-logs mailing list