diff options
author | Eugene Sandulenko | 2019-12-25 01:50:30 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-12-25 01:50:30 +0100 |
commit | 1cf7fd9196c61f620ce7135da7504e5e575736f2 (patch) | |
tree | cbdff185ba67fabd880cd05653abc08beb93a7d5 /engines/director | |
parent | 8c59f079516fc08ca28e56b401275a8520f80e4a (diff) | |
download | scummvm-rg350-1cf7fd9196c61f620ce7135da7504e5e575736f2.tar.gz scummvm-rg350-1cf7fd9196c61f620ce7135da7504e5e575736f2.tar.bz2 scummvm-rg350-1cf7fd9196c61f620ce7135da7504e5e575736f2.zip |
DIRECTOR: Added test routine for drawing palette
Diffstat (limited to 'engines/director')
-rw-r--r-- | engines/director/graphics.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/director/graphics.cpp b/engines/director/graphics.cpp index 6095c7f188..41b9cdeca6 100644 --- a/engines/director/graphics.cpp +++ b/engines/director/graphics.cpp @@ -281,6 +281,17 @@ void DirectorEngine::testFontScaling() { x += width + 1; } + for (int i = 0; i < 16; i++) { + for (int j = 0; j < 16; j++) { + int y1 = 80 + i * 7; + int x1 = 80 + j * 7; + + for (x = x1; x < x1 + 6; x++) + for (y = y1; y < y1 + 6; y++) + *((byte *)surface.getBasePtr(x, y)) = (15 - i) * 16 + (15 - j); + } + } + g_system->copyRectToScreen(surface.getPixels(), surface.pitch, 0, 0, w, h); // testing fonts Common::Event event; @@ -318,5 +329,4 @@ void DirectorEngine::testFonts() { delete fontFile; } - } |