diff options
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); |