summaryrefslogtreecommitdiff
path: root/games/xjig/files/patch-ab
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>1998-04-11 18:34:45 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>1998-04-11 18:34:45 +0000
commit2029f470e86f7048f52971deaad73f2bdb2c352c (patch)
tree2429b93a9de6a2000414a5e07572c148fdc85979 /games/xjig/files/patch-ab
parentUpgrade to 1.2. (diff)
Add some patches for 24bpp
PR: ports/6245 Submitted by: Jonathan Hanna <jh@pc-21490.bc.rogers.wave.ca>
Notes
Notes: svn path=/head/; revision=10481
Diffstat (limited to 'games/xjig/files/patch-ab')
-rw-r--r--games/xjig/files/patch-ab72
1 files changed, 72 insertions, 0 deletions
diff --git a/games/xjig/files/patch-ab b/games/xjig/files/patch-ab
new file mode 100644
index 000000000000..51a2ca4aaf07
--- /dev/null
+++ b/games/xjig/files/patch-ab
@@ -0,0 +1,72 @@
+--- gifx_image.C.orig Wed Jul 24 00:12:55 1996
++++ gifx_image.C Tue Apr 7 15:34:33 1998
+@@ -62,12 +62,16 @@
+ offset_rows=0;
+ #endif
+ DropData();
+- switch(texture_mode) {
+- case 1: Reset8(); break;
+- case 2: Reset16(); break;
+- case 3: Reset32(); break;
+- default: fprintf( stderr, "depth not supported\n" );
+- exit(0);
++
++ extern int pixmap_depth;
++
++ switch(pixmap_depth) {
++ case 8: Reset8(); break;
++ case 16: Reset16(); break;
++ case 24: Reset24(); break;
++ case 32: Reset32(); break;
++ default: fprintf( stderr, "depth not supported\n" );
++ exit(0);
+ }
+ }
+
+@@ -90,29 +94,40 @@
+ }
+
+ /*----------------------------------------------------------------------------*/
++
++#define CARD24 long
++
++#define DATA_TYPE CARD24
++#define DATA_BYTES 3
++void GifXImage::Reset24() {
++# include "reset_image.H"
++}
++#undef DATA_TYPE
++#undef DATA_BYTES
++/*----------------------------------------------------------------------------*/
+ #define DATA_TYPE CARD32
+-#define DATA_PAD 4
++#define DATA_BYTES 4
+ void GifXImage::Reset32() {
+ # include "reset_image.H"
+ }
+ #undef DATA_TYPE
+-#undef DATA_PAD
++#undef DATA_BYTES
+ /*----------------------------------------------------------------------------*/
+ #define DATA_TYPE CARD16
+-#define DATA_PAD 2
++#define DATA_BYTES 2
+ void GifXImage::Reset16() {
+ # include "reset_image.H"
+ }
+ #undef DATA_TYPE
+-#undef DATA_PAD
++#undef DATA_BYTES
+ /*----------------------------------------------------------------------------*/
+ #define DATA_TYPE CARD8
+-#define DATA_PAD 1
++#define DATA_BYTES 1
+ void GifXImage::Reset8() {
+ # include "reset_image.H"
+ }
+ #undef DATA_TYPE
+-#undef DATA_PAD
++#undef DATA_BYTES
+
+ // ========================================================================
+