blob: 437d5230b57da6e2a53cee18cfb797bb3c816b50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--- src/fontcache.cpp.orig 2015-01-31 17:48:10.000000000 +0100
+++ src/fontcache.cpp 2015-01-31 17:49:31.000000000 +0100
@@ -527,8 +527,8 @@
aa = (slot->bitmap.pixel_mode == FT_PIXEL_MODE_GRAY);
/* Add 1 pixel for the shadow on the medium font. Our sprite must be at least 1x1 pixel */
- int width = max(1, slot->bitmap.width + (this->fs == FS_NORMAL));
- int height = max(1, slot->bitmap.rows + (this->fs == FS_NORMAL));
+ int width = max(1u, slot->bitmap.width + (this->fs == FS_NORMAL));
+ int height = max(1u, slot->bitmap.rows + (this->fs == FS_NORMAL));
/* Limit glyph size to prevent overflows later on. */
if (width > 256 || height > 256) usererror("Font glyph is too large");
|