mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-24 00:54:18 +08:00
debug for stain pixel of subpixel
This commit is contained in:
+4
-1
@@ -378,12 +378,15 @@ static void prepare_bitmap (PDC pdc, int w, int h)
|
||||
char_bmp.bmBits = char_bits;
|
||||
|
||||
if (size <= char_bits_size) {
|
||||
return;
|
||||
goto done;
|
||||
}
|
||||
char_bits_size = ((size + 31) >> 5) << 5;
|
||||
|
||||
char_bits = realloc(char_bmp.bmBits, char_bits_size);
|
||||
char_bmp.bmBits = char_bits;
|
||||
|
||||
done:
|
||||
memset (char_bmp.bmBits, 0, char_bits_size);
|
||||
}
|
||||
|
||||
static Uint32 allocated_size = 0;
|
||||
|
||||
Reference in New Issue
Block a user