1
0
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:
Piotr Kubaj 2021-08-18 00:26:20 +00:00
parent 08ac14cfad
commit dfe51d5b0e

View 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;
/*