mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 10:05:44 -04:00
Fix 128x256 default.png crashing the game
This commit is contained in:
parent
11211e9526
commit
feff50b4c4
@ -109,6 +109,9 @@ static void CalculateTextWidths(void) {
|
|||||||
BitmapCol* row;
|
BitmapCol* row;
|
||||||
int i, x, y, xx, tileX, tileY;
|
int i, x, y, xx, tileX, tileY;
|
||||||
|
|
||||||
|
/* If 128x256 font bitmap is supplied, treat it as 128x128 */
|
||||||
|
height = min(width, height);
|
||||||
|
|
||||||
for (y = 0; y < height; y++) {
|
for (y = 0; y < height; y++) {
|
||||||
tileY = y / tileSize;
|
tileY = y / tileSize;
|
||||||
row = Bitmap_GetRow(&fontBitmap, y);
|
row = Bitmap_GetRow(&fontBitmap, y);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user