[Scummvm-cvs-logs] scummvm master -> fffb2ee3ffab2a4689b32651efa0b345923ddd69
lordhoto
lordhoto at gmail.com
Wed Aug 7 22:03:46 CEST 2013
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:
fffb2ee3ff HOPKINS: Respect pitch when drawing on OSystem's screen surface.
Commit: fffb2ee3ffab2a4689b32651efa0b345923ddd69
https://github.com/scummvm/scummvm/commit/fffb2ee3ffab2a4689b32651efa0b345923ddd69
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2013-08-07T13:01:19-07:00
Commit Message:
HOPKINS: Respect pitch when drawing on OSystem's screen surface.
Changed paths:
engines/hopkins/graphics.cpp
diff --git a/engines/hopkins/graphics.cpp b/engines/hopkins/graphics.cpp
index 66ddbfa..de9f043 100644
--- a/engines/hopkins/graphics.cpp
+++ b/engines/hopkins/graphics.cpp
@@ -1202,15 +1202,13 @@ void GraphicsManager::displayZones() {
void GraphicsManager::displayLines() {
Graphics::Surface *screenSurface = g_system->lockScreen();
- uint16 *pixels = (uint16 *)screenSurface->getPixels();
-
for (int lineIndex = 0; lineIndex < _vm->_linesMan->_linesNumb; lineIndex++) {
int i = 0;
do {
int x = _vm->_linesMan->_lineItem[lineIndex]._lineData[i] - _scrollPosX;
int y = _vm->_linesMan->_lineItem[lineIndex]._lineData[i+1];
if (x >= 0 && x < SCREEN_WIDTH && y >= 0 && y < SCREEN_HEIGHT) {
- pixels[ y * screenSurface->w + x ] = 0xffff;
+ WRITE_UINT16(screenSurface->getBasePtr(x, y), 0xffff);
}
i += 2;
}
More information about the Scummvm-git-logs
mailing list