Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Sep 2022 17:14:17 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 9c508558960e - main - graphics/glvis: fix build on big-endian architectures
Message-ID:  <202209131714.28DHEHnP023696@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9c508558960ee6fc98e04b27ee079e6586ba1bd4

commit 9c508558960ee6fc98e04b27ee079e6586ba1bd4
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-09-13 17:04:26 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-09-13 17:04:26 +0000

    graphics/glvis: fix build on big-endian architectures
---
 graphics/glvis/files/patch-lib_aux__vis.cpp | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/graphics/glvis/files/patch-lib_aux__vis.cpp b/graphics/glvis/files/patch-lib_aux__vis.cpp
new file mode 100644
index 000000000000..a049d97c2e3c
--- /dev/null
+++ b/graphics/glvis/files/patch-lib_aux__vis.cpp
@@ -0,0 +1,13 @@
+--- lib/aux_vis.cpp.orig	2022-09-11 23:06:14 UTC
++++ lib/aux_vis.cpp
+@@ -822,8 +822,8 @@ const char *glvis_screenshot_ext = ".bmp";
+ #if SDL_BYTEORDER == SDL_BIG_ENDIAN
+ Uint32 rmask = 0xff000000;
+ Uint32 gmask = 0x00ff0000;
+-Uint32 bmask = 0x0000ff00:
+-               Uint32 amask = 0x000000ff;
++Uint32 bmask = 0x0000ff00;
++Uint32 amask = 0x000000ff;
+ #else // little endian, like x86
+ Uint32 rmask = 0x000000ff;
+ Uint32 gmask = 0x0000ff00;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209131714.28DHEHnP023696>