Hello community, here is the log from the commit of package prboom-plus for openSUSE:Factory checked in at 2013-04-09 10:27:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/prboom-plus (Old) and /work/SRC/openSUSE:Factory/.prboom-plus.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "prboom-plus", Maintainer is "" Changes: -------- New Changes file: --- /dev/null 2013-04-05 00:01:41.916011506 +0200 +++ /work/SRC/openSUSE:Factory/.prboom-plus.new/prboom-plus.changes 2013-04-09 10:27:32.000000000 +0200 @@ -0,0 +1,44 @@ +------------------------------------------------------------------- +Fri May 25 20:32:53 UTC 2012 - [email protected] + +- Corrected typo in spec file + +------------------------------------------------------------------- +Fri May 25 16:13:06 UTC 2012 - [email protected] + +- Added BuildRequires automake + +------------------------------------------------------------------- +Wed Aug 3 16:38:07 UTC 2011 - [email protected] + +- Enable missing USE_GLU_TESS for the self-referencing sector hack + to be rendered. + +------------------------------------------------------------------- +Mon Jun 20 11:25:36 UTC 2011 - [email protected] + +- Update to new upstream release 2.5.1.1: +* Support was added for sound fonts, OPL2 emulation, mouse wheel, + changing resolution on the fly, interpolation of automap, and the + "use GL surface for software mode" video option for the ability + to use hardware vsync in software mode. + +------------------------------------------------------------------- +Tue Nov 16 14:03:31 UTC 2010 - [email protected] + +- Update to new upstream release 2.5.0.8a: +* Support for textured automap was added. Compatibility with Doom + 1.2 was improved. New HUDs and bugs were fixed. + +------------------------------------------------------------------- +Mon Aug 23 09:31:11 UTC 2010 - [email protected] + +- Update to new upstream release 2.5.0.7: +* A lot of compatibility and improvements, many bug fixes, and + several new features were added, including support for DeePBSP and + uncompressed ZDBSP nodes and dynamic music changing... through the + new MUSINFO lump. On the GLBoom+ front, there is support for GZDoom + skyboxes, custom detail texture definitions, and blending of + animated flats and wall textures. + + New: ---- clean_source.sh prboom-enable-tessellation.diff prboom-nodatetime.diff prboom-plus-2.5.1.1+.tar.xz prboom-plus.changes prboom-plus.spec prboom-protos.diff prboom-types1.diff prboom-types2.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ prboom-plus.spec ++++++ # # spec file for package prboom-plus # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: prboom-plus Version: 2.5.1.1 Release: 0 Summary: Open source port of the DOOM game engine License: GPL-2.0+ Group: Amusements/Games/3D/Shoot Url: http://prboom-plus.sourceforge.net/ Source: %name-%{version}+.tar.xz Patch1: prboom-nodatetime.diff Patch2: prboom-types1.diff Patch3: prboom-types2.diff Patch4: prboom-protos.diff Patch5: prboom-enable-tessellation.diff Source2: clean_source.sh BuildRequires: Mesa-devel BuildRequires: automake BuildRequires: fluidsynth-devel BuildRequires: libSDL_image-devel BuildRequires: libSDL_mixer-devel BuildRequires: libSDL_net-devel BuildRequires: libpng-devel BuildRequires: libvorbis-devel BuildRequires: pcre-devel BuildRequires: xz Suggests: freedoom Provides: prboom > 2.5.0 Obsoletes: prboom <= 2.5.0 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description PrBoom+ is a Doom source port developed from the original PrBoom project. prboom is an open-source port of Doom, the classic 3D first-person shooter game. It totally outclassed any 3D world games that preceded it, with amazing speed, flexibility, and outstanding gameplay. The specs to the game were released, and thousands of extra levels were written by fans of the game; even today new levels are written for Doom faster then any one person could play them. The target of the prboom-plus project is to extend the original port with features that are necessary or useful to the developers and all those interested in their work. It is worth noting that all changes introduced in no way break PrBoom's compatibility with the original Doom/Doom2 engines, and it is possible to be confident this will never happen in the future since compatibility is as important. %prep %setup -q %patch -P 1 -P 2 -P 3 -P 4 -P 5 -p1 %build ./bootstrap; # rpm has its own optimizations, so turn off shipped defaults %configure --enable-gl --disable-cpu-opt --program-prefix='' \ --with-waddir=%_datadir/doom --disable-dogs make %{?_smp_mflags} %install b="%buildroot"; make install DESTDIR="$b"; # Will manually package docs (see %%files) rm -Rf "$b/%_datadir/doc"; mkdir -p "$b/%_bindir"; mv "$b/%_prefix/games"/* "$b/%_bindir/"; # Convenience symlink ln -s prboom-plus "$b/%_bindir/prboom"; %files %defattr(-,root,root) %doc NEWS AUTHORS README %doc doc/MBF.txt doc/MBFFAQ.txt doc/README.compat doc/README.demos doc/boom.txt %_bindir/* %_datadir/doom %_mandir/*/* %changelog ++++++ clean_source.sh ++++++ #!/bin/sh -ex # Remove Wolfenstein dogs from source : ${DOOMWADDIR:=/usr/share/doom}; version=$(perl -lne 'if(/^Version\s*:\s*(\S+)/){print$1;exit}' <prboom-plus.spec); tar -xf "prboom-plus-$version.tar.xz"; pushd "prboom-plus-$version/data/"; deutex -doom2 "$DOOMWADDIR" -extract prboom-plus.wad; touch lumps/{b,c}_{start,end}.lmp; grep -Ev '^DOG|^DSDG' <prboom.txt >wadinfo.txt; rm -f prboom-plus.wad; deutex -doom2 "$DOOMWADDIR" -create wadinfo.txt prboom-plus.wad; find . -mindepth 1 -type d -print0 | xargs -0 rm -Rf; mv wadinfo.txt prboom.txt; rm -f error.txt output.txt; popd; find "prboom-plus-$version" -print0 | sort -z | \ tar -T- --null --use=xz -cvf "prboom-plus-$version+.tar.xz"; ++++++ prboom-enable-tessellation.diff ++++++ Date: 2011-08-03 18:36:44+0200 From: Jan Engelhardt <[email protected]> Always do tesselation, because otherwise, map hacks like self-referencing sectors (cf. http://doom.wikia.com/wiki/Making_a_self-referencing_sector) will not be rendered. --- src/gl_main.c | 3 +++ 1 file changed, 3 insertions(+) Index: prboom-plus-2.5.1.1/src/gl_main.c =================================================================== --- prboom-plus-2.5.1.1.orig/src/gl_main.c +++ prboom-plus-2.5.1.1/src/gl_main.c @@ -83,6 +83,9 @@ #ifdef USE_CUSTOM_QSORT #include "qsort.h" #endif +#ifndef USE_GLU_TESS +# define USE_GLU_TESS 1 +#endif int triangulate_subsectors = 0; // All OpenGL extentions will be disabled in gl_compatibility mode ++++++ prboom-nodatetime.diff ++++++ --- src/version.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: prboom-plus-2.5.1.1/src/version.c =================================================================== --- prboom-plus-2.5.1.1.orig/src/version.c +++ prboom-plus-2.5.1.1/src/version.c @@ -35,4 +35,4 @@ #include "version.h" -const char version_date[] = __DATE__ " " __TIME__; +const char version_date[] = ""; ++++++ prboom-protos.diff ++++++ From: Jan Engelhardt <[email protected]> build: fix compiler warnings about prototypes p_enemy.c: In function 'A_KeenDie': p_enemy.c:1023:3: warning: call to function 'A_Fall' without a real prototype p_enemy.h:59:6: note: 'A_Fall' was declared here p_enemy.c: In function 'A_Chase': p_enemy.c:1147:5: warning: call to function 'A_FaceTarget' without a real prototype p_enemy.h:63:6: note: 'A_FaceTarget' was declared here p_enemy.c: In function 'A_StartFire': p_enemy.c:1755:3: warning: call to function 'A_Fire' without a real prototype p_enemy.h:72:6: note: 'A_Fire' was declared here p_enemy.c: In function 'A_FireCrackle': p_enemy.c:1761:3: warning: call to function 'A_Fire' without a real prototype p_enemy.h:72:6: note: 'A_Fire' was declared here p_enemy.c: In function 'A_PainDie': p_enemy.c:2067:3: warning: call to function 'A_Fall' without a real prototype p_enemy.h:59:6: note: 'A_Fall' was declared here p_enemy.c: In function 'A_CloseShotgun2': p_enemy.c:2326:3: warning: call to function 'A_ReFire' without a real prototype p_pspr.h:100:6: note: 'A_ReFire' was declared here p_enemy.c: In function 'A_SpawnSound': p_enemy.c:2457:3: warning: call to function 'A_SpawnFly' without a real prototype p_enemy.h:105:6: note: 'A_SpawnFly' was declared here --- src/p_enemy.h | 122 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 61 insertions(+), 61 deletions(-) Index: prboom-plus-2.5.1.1/src/p_enemy.h =================================================================== --- prboom-plus-2.5.1.1.orig/src/p_enemy.h +++ prboom-plus-2.5.1.1/src/p_enemy.h @@ -53,66 +53,66 @@ extern struct brain_s { /* killo // allows more extensive changes (see d_deh.c) // Doesn't work with g++, needs actionf_p1 -void A_Explode(); -void A_Pain(); -void A_PlayerScream(); -void A_Fall(); -void A_XScream(); -void A_Look(); -void A_Chase(); -void A_FaceTarget(); -void A_PosAttack(); -void A_Scream(); -void A_SPosAttack(); -void A_VileChase(); -void A_VileStart(); -void A_VileTarget(); -void A_VileAttack(); -void A_StartFire(); -void A_Fire(); -void A_FireCrackle(); -void A_Tracer(); -void A_SkelWhoosh(); -void A_SkelFist(); -void A_SkelMissile(); -void A_FatRaise(); -void A_FatAttack1(); -void A_FatAttack2(); -void A_FatAttack3(); -void A_BossDeath(); -void A_CPosAttack(); -void A_CPosRefire(); -void A_TroopAttack(); -void A_SargAttack(); -void A_HeadAttack(); -void A_BruisAttack(); -void A_SkullAttack(); -void A_Metal(); -void A_SpidRefire(); -void A_BabyMetal(); -void A_BspiAttack(); -void A_Hoof(); -void A_CyberAttack(); -void A_PainAttack(); -void A_PainDie(); -void A_KeenDie(); -void A_BrainPain(); -void A_BrainScream(); -void A_BrainDie(); -void A_BrainAwake(); -void A_BrainSpit(); -void A_SpawnSound(); -void A_SpawnFly(); -void A_BrainExplode(); -void A_Die(); -void A_Detonate(); /* killough 8/9/98: detonate a bomb or other device */ -void A_Mushroom(); /* killough 10/98: mushroom effect */ -void A_Spawn(); // killough 11/98 -void A_Turn(); // killough 11/98 -void A_Face(); // killough 11/98 -void A_Scratch(); // killough 11/98 -void A_PlaySound(); // killough 11/98 -void A_RandomJump(); // killough 11/98 -void A_LineEffect(); // killough 11/98 +void A_Explode(mobj_t *); +void A_Pain(mobj_t *); +void A_PlayerScream(mobj_t *); +void A_Fall(mobj_t *); +void A_XScream(mobj_t *); +void A_Look(mobj_t *); +void A_Chase(mobj_t *); +void A_FaceTarget(mobj_t *); +void A_PosAttack(mobj_t *); +void A_Scream(mobj_t *); +void A_SPosAttack(mobj_t *); +void A_VileChase(mobj_t *); +void A_VileStart(mobj_t *); +void A_VileTarget(mobj_t *); +void A_VileAttack(mobj_t *); +void A_StartFire(mobj_t *); +void A_Fire(mobj_t *); +void A_FireCrackle(mobj_t *); +void A_Tracer(mobj_t *); +void A_SkelWhoosh(mobj_t *); +void A_SkelFist(mobj_t *); +void A_SkelMissile(mobj_t *); +void A_FatRaise(mobj_t *); +void A_FatAttack1(mobj_t *); +void A_FatAttack2(mobj_t *); +void A_FatAttack3(mobj_t *); +void A_BossDeath(mobj_t *); +void A_CPosAttack(mobj_t *); +void A_CPosRefire(mobj_t *); +void A_TroopAttack(mobj_t *); +void A_SargAttack(mobj_t *); +void A_HeadAttack(mobj_t *); +void A_BruisAttack(mobj_t *); +void A_SkullAttack(mobj_t *); +void A_Metal(mobj_t *); +void A_SpidRefire(mobj_t *); +void A_BabyMetal(mobj_t *); +void A_BspiAttack(mobj_t *); +void A_Hoof(mobj_t *); +void A_CyberAttack(mobj_t *); +void A_PainAttack(mobj_t *); +void A_PainDie(mobj_t *); +void A_KeenDie(mobj_t *); +void A_BrainPain(mobj_t *); +void A_BrainScream(mobj_t *); +void A_BrainDie(mobj_t *); +void A_BrainAwake(mobj_t *); +void A_BrainSpit(mobj_t *); +void A_SpawnSound(mobj_t *); +void A_SpawnFly(mobj_t *); +void A_BrainExplode(mobj_t *); +void A_Die(mobj_t *); +void A_Detonate(mobj_t *); /* killough 8/9/98: detonate a bomb or other device */ +void A_Mushroom(mobj_t *); /* killough 10/98: mushroom effect */ +void A_Spawn(mobj_t *); // killough 11/98 +void A_Turn(mobj_t *); // killough 11/98 +void A_Face(mobj_t *); // killough 11/98 +void A_Scratch(mobj_t *); // killough 11/98 +void A_PlaySound(mobj_t *); // killough 11/98 +void A_RandomJump(mobj_t *); // killough 11/98 +void A_LineEffect(mobj_t *); // killough 11/98 #endif // __P_ENEMY__ ++++++ prboom-types1.diff ++++++ From: Jan Engelhardt <[email protected]> build: fix compiler warnings oplplayer.c:1347:9: warning: format '%i' expects type 'int', but argument 3 has type 'size_t' gl_main.c:1307:5: warning: format '%i' expects type 'int', but argument 3 has type 'long int' size_t requires %z; the second instance actually has type ptrdiff_t, so %t is required. --- src/MUSIC/oplplayer.c | 2 +- src/gl_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Index: prboom-plus-2.5.1.1/src/MUSIC/oplplayer.c =================================================================== --- prboom-plus-2.5.1.1.orig/src/MUSIC/oplplayer.c +++ prboom-plus-2.5.1.1/src/MUSIC/oplplayer.c @@ -1344,7 +1344,7 @@ static const void *I_OPL_RegisterSong(co // time numbers we have to traverse the tracks and everything if (mf.len < 100) { - lprintf (LO_WARN, "I_OPL_RegisterSong: Very short MIDI (%i bytes)\n", mf.len); + lprintf (LO_WARN, "I_OPL_RegisterSong: Very short MIDI (%zu bytes)\n", mf.len); return NULL; } Index: prboom-plus-2.5.1.1/src/gl_main.c =================================================================== --- prboom-plus-2.5.1.1.orig/src/gl_main.c +++ prboom-plus-2.5.1.1/src/gl_main.c @@ -1304,7 +1304,7 @@ static void gld_FlatConvexCarver(int ssi if(!numedgepoints) { - if (levelinfo) fprintf(levelinfo, "All carved away: subsector %i - sector %i\n", ssec-subsectors, ssec->sector->iSectorID); + if (levelinfo) fprintf(levelinfo, "All carved away: subsector %td - sector %i\n", ssec-subsectors, ssec->sector->iSectorID); } else { ++++++ prboom-types2.diff ++++++ From: Jan Engelhardt <[email protected]> build: fix compiler warnings about casting across different-size types p_saveg.c: In function 'P_ArchivePlayers': p_saveg.c:66:9: warning: cast from pointer to integer of different size [...] --- src/g_overflow.c | 3 ++- src/p_saveg.c | 31 ++++++++++++++++--------------- src/r_drawflush.inl | 4 +++- 3 files changed, 21 insertions(+), 17 deletions(-) Index: prboom-plus-2.5.1.1/src/g_overflow.c =================================================================== --- prboom-plus-2.5.1.1.orig/src/g_overflow.c +++ prboom-plus-2.5.1.1/src/g_overflow.c @@ -35,6 +35,7 @@ #include "config.h" #endif +#include <stdint.h> #include <stdio.h> #include <stdarg.h> @@ -170,7 +171,7 @@ void InterceptsOverrun(int num_intercept InterceptsMemoryOverrun(location, intercept->frac); InterceptsMemoryOverrun(location + 4, intercept->isaline); - InterceptsMemoryOverrun(location + 8, (int) intercept->d.thing); + InterceptsMemoryOverrun(location + 8, (uintptr_t) intercept->d.thing); } } } Index: prboom-plus-2.5.1.1/src/p_saveg.c =================================================================== --- prboom-plus-2.5.1.1.orig/src/p_saveg.c +++ prboom-plus-2.5.1.1/src/p_saveg.c @@ -31,6 +31,7 @@ * *-----------------------------------------------------------------------------*/ +#include <stdint.h> #include "doomstat.h" #include "r_main.h" #include "p_maputl.h" @@ -48,7 +49,7 @@ byte *save_p; // Pads save_p to a 4-byte boundary // so that the load/save works on SGI&Gecko. -#define PADSAVEP() do { save_p += (4 - ((int) save_p & 3)) & 3; } while (0) +#define PADSAVEP() do { save_p += (4 - ((uintptr_t) save_p & 3)) & 3; } while (0) // // P_ArchivePlayers // @@ -99,7 +100,7 @@ void P_UnArchivePlayers (void) for (j=0 ; j<NUMPSPRITES ; j++) if (players[i]. psprites[j].state) players[i]. psprites[j].state = - &states[ (int)players[i].psprites[j].state ]; + &states[ (uintptr_t)players[i].psprites[j].state ]; } } @@ -279,7 +280,7 @@ void P_ThinkerToIndex(void) number_of_thinkers = 0; for (th = thinkercap.next ; th != &thinkercap ; th=th->next) if (th->function == P_MobjThinker) - th->prev = (thinker_t *) ++number_of_thinkers; + th->prev = (thinker_t *)(uintptr_t) ++number_of_thinkers; } // phares 9/13/98: Moved this code outside of P_ArchiveThinkers so the @@ -497,10 +498,10 @@ void P_UnArchiveThinkers (void) //e6y save_p += 4*sizeof(void*); - mobj->state = states + (int) mobj->state; + mobj->state = states + (uintptr_t) mobj->state; if (mobj->player) - (mobj->player = &players[(int) mobj->player - 1]) -> mo = mobj; + (mobj->player = &players[(uintptr_t) mobj->player - 1]) -> mo = mobj; P_SetThingPosition (mobj); mobj->info = &mobjinfo[mobj->type]; @@ -811,7 +812,7 @@ void P_UnArchiveSpecials (void) ceiling_t *ceiling = Z_Malloc (sizeof(*ceiling), PU_LEVEL, NULL); memcpy (ceiling, save_p, sizeof(*ceiling)); save_p += sizeof(*ceiling); - ceiling->sector = §ors[(int)ceiling->sector]; + ceiling->sector = §ors[(uintptr_t)ceiling->sector]; ceiling->sector->ceilingdata = ceiling; //jff 2/22/98 if (ceiling->thinker.function) @@ -828,10 +829,10 @@ void P_UnArchiveSpecials (void) vldoor_t *door = Z_Malloc (sizeof(*door), PU_LEVEL, NULL); memcpy (door, save_p, sizeof(*door)); save_p += sizeof(*door); - door->sector = §ors[(int)door->sector]; + door->sector = §ors[(uintptr_t)door->sector]; //jff 1/31/98 unarchive line remembered by door as well - door->line = (int)door->line!=-1? &lines[(int)door->line] : NULL; + door->line = (uintptr_t)door->line!=-1? &lines[(uintptr_t)door->line] : NULL; door->sector->ceilingdata = door; //jff 2/22/98 door->thinker.function = T_VerticalDoor; @@ -845,7 +846,7 @@ void P_UnArchiveSpecials (void) floormove_t *floor = Z_Malloc (sizeof(*floor), PU_LEVEL, NULL); memcpy (floor, save_p, sizeof(*floor)); save_p += sizeof(*floor); - floor->sector = §ors[(int)floor->sector]; + floor->sector = §ors[(uintptr_t)floor->sector]; floor->sector->floordata = floor; //jff 2/22/98 floor->thinker.function = T_MoveFloor; P_AddThinker (&floor->thinker); @@ -858,7 +859,7 @@ void P_UnArchiveSpecials (void) plat_t *plat = Z_Malloc (sizeof(*plat), PU_LEVEL, NULL); memcpy (plat, save_p, sizeof(*plat)); save_p += sizeof(*plat); - plat->sector = §ors[(int)plat->sector]; + plat->sector = §ors[(uintptr_t)plat->sector]; plat->sector->floordata = plat; //jff 2/22/98 if (plat->thinker.function) @@ -875,7 +876,7 @@ void P_UnArchiveSpecials (void) lightflash_t *flash = Z_Malloc (sizeof(*flash), PU_LEVEL, NULL); memcpy (flash, save_p, sizeof(*flash)); save_p += sizeof(*flash); - flash->sector = §ors[(int)flash->sector]; + flash->sector = §ors[(uintptr_t)flash->sector]; flash->thinker.function = T_LightFlash; P_AddThinker (&flash->thinker); break; @@ -887,7 +888,7 @@ void P_UnArchiveSpecials (void) strobe_t *strobe = Z_Malloc (sizeof(*strobe), PU_LEVEL, NULL); memcpy (strobe, save_p, sizeof(*strobe)); save_p += sizeof(*strobe); - strobe->sector = §ors[(int)strobe->sector]; + strobe->sector = §ors[(uintptr_t)strobe->sector]; strobe->thinker.function = T_StrobeFlash; P_AddThinker (&strobe->thinker); break; @@ -899,7 +900,7 @@ void P_UnArchiveSpecials (void) glow_t *glow = Z_Malloc (sizeof(*glow), PU_LEVEL, NULL); memcpy (glow, save_p, sizeof(*glow)); save_p += sizeof(*glow); - glow->sector = §ors[(int)glow->sector]; + glow->sector = §ors[(uintptr_t)glow->sector]; glow->thinker.function = T_Glow; P_AddThinker (&glow->thinker); break; @@ -911,7 +912,7 @@ void P_UnArchiveSpecials (void) fireflicker_t *flicker = Z_Malloc (sizeof(*flicker), PU_LEVEL, NULL); memcpy (flicker, save_p, sizeof(*flicker)); save_p += sizeof(*flicker); - flicker->sector = §ors[(int)flicker->sector]; + flicker->sector = §ors[(uintptr_t)flicker->sector]; flicker->thinker.function = T_FireFlicker; P_AddThinker (&flicker->thinker); break; @@ -924,7 +925,7 @@ void P_UnArchiveSpecials (void) elevator_t *elevator = Z_Malloc (sizeof(*elevator), PU_LEVEL, NULL); memcpy (elevator, save_p, sizeof(*elevator)); save_p += sizeof(*elevator); - elevator->sector = §ors[(int)elevator->sector]; + elevator->sector = §ors[(uintptr_t)elevator->sector]; elevator->sector->floordata = elevator; //jff 2/22/98 elevator->sector->ceilingdata = elevator; //jff 2/22/98 elevator->thinker.function = T_MoveElevator; Index: prboom-plus-2.5.1.1/src/r_drawflush.inl =================================================================== --- prboom-plus-2.5.1.1.orig/src/r_drawflush.inl +++ prboom-plus-2.5.1.1/src/r_drawflush.inl @@ -28,6 +28,8 @@ * *-----------------------------------------------------------------------------*/ +#include <stdint.h> + #if (R_DRAWCOLUMN_PIPELINE_BITS == 8) #define SCREENTYPE byte #define TOPLEFT byte_topleft @@ -250,7 +252,7 @@ static void R_FLUSHQUAD_FUNCNAME(void) } #else #if (R_DRAWCOLUMN_PIPELINE_BITS == 8) - if ((sizeof(int) == 4) && (((int)source % 4) == 0) && (((int)dest % 4) == 0)) { + if ((sizeof(int) == 4) && (((uintptr_t)source % 4) == 0) && (((uintptr_t)dest % 4) == 0)) { while(--count >= 0) { *(int *)dest = *(int *)source; -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
