mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
games/crossfire-client: fix build on big-endian
/wrkdirs/usr/ports/games/crossfire-client/work/crossfire-client-1.75.0/gtk-v2/src/image.c:167:31: error: use of undeclared identifier 'ny' for (i=0; i < width * ny; i+= 4) { ^
This commit is contained in:
parent
08ac14cfad
commit
dfe51d5b0e
11
games/crossfire-client/files/patch-gtk-v2_src_image.c
Normal file
11
games/crossfire-client/files/patch-gtk-v2_src_image.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- gtk-v2/src/image.c.orig 2021-08-18 00:18:54 UTC
|
||||
+++ gtk-v2/src/image.c
|
||||
@@ -164,7 +164,7 @@ static void create_map_image(guint8 *data, PixmapInfo
|
||||
*p = (g << 8) | (g << 16) | (g << 24) | *(l + 3);
|
||||
}
|
||||
|
||||
- for (i=0; i < width * ny; i+= 4) {
|
||||
+ for (i=0; i < width * height; i+= 4) {
|
||||
guint32 *tmp;
|
||||
|
||||
/*
|
Loading…
Reference in New Issue
Block a user