diff options
author | Travis Howell | 2009-06-05 00:28:07 +0000 |
---|---|---|
committer | Travis Howell | 2009-06-05 00:28:07 +0000 |
commit | fa2b1add9d2febe7dd2e5691eaa85f8e7725163c (patch) | |
tree | f0a14a1b3ca0e4dd3ef61ca759c747d16548d86f /graphics | |
parent | be36b352fca2c3e6ec0ae3b0c33d0028927d5343 (diff) | |
download | scummvm-rg350-fa2b1add9d2febe7dd2e5691eaa85f8e7725163c.tar.gz scummvm-rg350-fa2b1add9d2febe7dd2e5691eaa85f8e7725163c.tar.bz2 scummvm-rg350-fa2b1add9d2febe7dd2e5691eaa85f8e7725163c.zip |
Ooops, update asserts in grabScreen565() too.
svn-id: r41183
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/scaler/thumbnail_intern.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/scaler/thumbnail_intern.cpp b/graphics/scaler/thumbnail_intern.cpp index 57dd468bbf..a542fe2268 100644 --- a/graphics/scaler/thumbnail_intern.cpp +++ b/graphics/scaler/thumbnail_intern.cpp @@ -99,7 +99,8 @@ static bool grabScreen565(Graphics::Surface *surf) { if (!screen) return false; - assert(screen->bytesPerPixel == 1 && screen->pixels != 0); + assert(screen->bytesPerPixel == 1 || screen->bytesPerPixel == 2); + assert(screen->pixels != 0); byte palette[256 * 4]; g_system->grabPalette(&palette[0], 0, 256); |