mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-17 11:28:16 +00:00
fixed energy bar display problem
This commit is contained in:
parent
41c0d4dd84
commit
dfecabb119
BIN
images/terrain/galleon.png
Normal file
BIN
images/terrain/galleon.png
Normal file
Binary file not shown.
@ -71,7 +71,7 @@ void adjust_surface_colour(SDL_Surface* surface, int r, int g, int b)
|
||||
for(int y = 0; y != surface->h; ++y, pixel += xpad) {
|
||||
const short* const end = pixel + surface->w;
|
||||
while(pixel != end) {
|
||||
if(*pixel != 0 && *pixel != 0xFF) {
|
||||
if(*pixel != 0 && *pixel != short(0xFFFF)) {
|
||||
Uint8 red, green, blue;
|
||||
SDL_GetRGB(*pixel,surface->format,&red,&green,&blue);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user