Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 393442 Details for
Bug 526570
games-simulation/openttd-1.4.4: version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
openttd-freetype254.patch
openttd-freetype254.patch (text/plain), 1.67 KB, created by
Lars Wendler (Polynomial-C) (RETIRED)
on 2015-01-07 21:33:16 UTC
(
hide
)
Description:
openttd-freetype254.patch
Filename:
MIME Type:
Creator:
Lars Wendler (Polynomial-C) (RETIRED)
Created:
2015-01-07 21:33:16 UTC
Size:
1.67 KB
patch
obsolete
>Index: trunk/src/fontcache.cpp >=================================================================== >--- trunk/src/fontcache.cpp (revision 27020) >+++ trunk/src/fontcache.cpp (revision 27079) >@@ -537,6 +537,6 @@ > > /* 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)); >+ unsigned int width = max(1U, (unsigned int)slot->bitmap.width + (this->fs == FS_NORMAL)); >+ unsigned int height = max(1U, (unsigned int)slot->bitmap.rows + (this->fs == FS_NORMAL)); > > /* Limit glyph size to prevent overflows later on. */ >@@ -554,6 +554,6 @@ > /* Draw shadow for medium size */ > if (this->fs == FS_NORMAL && !aa) { >- for (int y = 0; y < slot->bitmap.rows; y++) { >- for (int x = 0; x < slot->bitmap.width; x++) { >+ for (unsigned int y = 0; y < (unsigned int)slot->bitmap.rows; y++) { >+ for (unsigned int x = 0; x < (unsigned int)slot->bitmap.width; x++) { > if (aa ? (slot->bitmap.buffer[x + y * slot->bitmap.pitch] > 0) : HasBit(slot->bitmap.buffer[(x / 8) + y * slot->bitmap.pitch], 7 - (x % 8))) { > sprite.data[1 + x + (1 + y) * sprite.width].m = SHADOW_COLOUR; >@@ -564,6 +564,6 @@ > } > >- for (int y = 0; y < slot->bitmap.rows; y++) { >- for (int x = 0; x < slot->bitmap.width; x++) { >+ for (unsigned int y = 0; y < (unsigned int)slot->bitmap.rows; y++) { >+ for (unsigned int x = 0; x < (unsigned int)slot->bitmap.width; x++) { > if (aa ? (slot->bitmap.buffer[x + y * slot->bitmap.pitch] > 0) : HasBit(slot->bitmap.buffer[(x / 8) + y * slot->bitmap.pitch], 7 - (x % 8))) { > sprite.data[x + y * sprite.width].m = FACE_COLOUR;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 526570
:
393052
|
393440
| 393442 |
393444