From 7cf701b0dde526226faf728df32015c726df7db0 Mon Sep 17 00:00:00 2001 From: idea4good Date: Thu, 4 Jul 2019 15:50:37 +0800 Subject: [PATCH] fix bitmap issue --- core/bitmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/bitmap.cpp b/core/bitmap.cpp index a93d3e3..9c4b36f 100644 --- a/core/bitmap.cpp +++ b/core/bitmap.cpp @@ -42,7 +42,7 @@ void c_bitmap::draw_bitmap(c_surface* surface, int z_order, const BITMAP_INFO *p void c_bitmap::draw_bitmap(c_surface* surface, int z_order, const BITMAP_INFO* pBitmap, int x, int y, int src_x, int src_y, int width, int height, unsigned int mask_rgb) { - if (0 == pBitmap || (src_x + width > pBitmap->XSize) || (src_y + height > pBitmap->XSize)) + if (0 == pBitmap || (src_x + width > pBitmap->XSize) || (src_y + height > pBitmap->YSize)) { return; }