Ticket #7977: scummvmqnx.patch
File scummvmqnx.patch, 4.0 KB (added by , 22 years ago) |
---|
-
Makefile.qnx
Common subdirectories: scummvmold/CVS and scummvmnew/CVS diff -N -u scummvmold/Makefile.qnx scummvmnew/Makefile.qnx
old new 1 # $Header: /cvsroot/scummvm/scummvm/Makefile,v 1.50 2002/06/17 13:16:50 kirben Exp $ 2 3 CC = qcc 4 CFLAGS = -g -O -Wall -Wstrict-prototypes -Wuninitialized -Wno-long-long -Wno-multichar 5 DEFINES = 6 LDFLAGS := 7 INCLUDES:= -I./ -I./sound 8 LIBS = -lncurses 9 10 # Uncomment this to activate the MAD lib for compressed sound files 11 DEFINES += -DCOMPRESSED_SOUND_FILE 12 LIBS += -lmad 13 14 # Now, please choose a graphical output system between SDL, SDL/GL and X11. 15 # Beware, only define one of them, otherwise the compilation will blow up. 16 17 # Comment this if you want to disable SDL output 18 OBJS = sdl.o 19 INCLUDES += `sdl-config --cflags` 20 LIBS += `sdl-config --libs` 21 DEFINES += -DUNIX 22 23 # Uncomment this (instead of the above) to activate the SDL with OpenGL output 24 #OBJS = sdl_gl.o 25 #INCLUDES += `sdl-config --cflags` 26 #LIBS += `sdl-config --libs` -lGL 27 #DEFINES += -DUNIX 28 29 # Uncomment this if you rather want X11 output 30 # OBJS = x11.o 31 # DEFINES += -DUNIX_X11 32 # LDFLAGS := -L/usr/X11R6/lib -L/usr/local/lib 33 # INCLUDES+= -I/usr/X11R6/include 34 # LIBS += -lpthread -lXext -lX11 35 36 # Enable this if you want ScummVM to dump all scripts it runs. 37 # This is mainly interesting for developers. 38 # DEFINES += -DDUMP_SCRIPTS 39 40 CPPFLAGS= $(DEFINES) $(INCLUDES) 41 42 include Makefile.common 43 44 dist: 45 rm -f $(ZIPFILE) 46 zip -q $(ZIPFILE) $(DISTFILES) -
actor.cpp
Common subdirectories: scummvmold/PocketSCUMM and scummvmnew/PocketSCUMM diff -N -u scummvmold/actor.cpp scummvmnew/actor.cpp
old new 103 103 } 104 104 } 105 105 106 int Scumm::getAngleFromPos( int x, inty)106 int Scumm::getAngleFromPos(double x, double y) 107 107 { 108 108 if (_gameId == GID_DIG) { 109 109 double temp = atan2(x, -y); … … 125 125 { 126 126 int actorX, actorY; 127 127 int diffX, diffY; 128 int 32XYFactor, YXFactor;128 int XYFactor, YXFactor; 129 129 130 130 actorX = x; 131 131 actorY = y; -
boxes.cpp
diff -N -u scummvmold/boxes.cpp scummvmnew/boxes.cpp
old new 907 907 int i; 908 908 int Closest1 = 0, Closest2 = 0, Closest3 = 0; 909 909 int Dist[8]; 910 int Dist1, Dist2, Dist3;910 float Dist1, Dist2, Dist3; 911 911 int Box1, Box2, Box3; 912 912 BoxCoords box; 913 913 int polyx[8]; -
scumm.h
Common subdirectories: scummvmold/dc and scummvmnew/dc Common subdirectories: scummvmold/debian and scummvmnew/debian Common subdirectories: scummvmold/gui and scummvmnew/gui Common subdirectories: scummvmold/mac and scummvmnew/mac Common subdirectories: scummvmold/macosclassic and scummvmnew/macosclassic Common subdirectories: scummvmold/morphos and scummvmnew/morphos diff -N -u scummvmold/scumm.h scummvmnew/scumm.h
old new 988 988 static int oldDirToNewDir(int dir); 989 989 990 990 static int normalizeAngle(int angle); 991 int getAngleFromPos( int x, inty);991 int getAngleFromPos(double x, double y); 992 992 static int fromSimpleDir(int dirtype, int dir); 993 993 static int toSimpleDir(int dirtype, int dir); 994 994 static int numSimpleDirDirections(int dirType); -
stdafx.h
Common subdirectories: scummvmold/simon and scummvmnew/simon Common subdirectories: scummvmold/sound and scummvmnew/sound diff -N -u scummvmold/stdafx.h scummvmnew/stdafx.h
old new 122 122 #include <stdio.h> 123 123 #include <fcntl.h> 124 124 #include <stdlib.h> 125 #ifndef __QNXNTO__ 125 126 #include <string.h> 127 #else 128 #include <strings.h> 129 #endif /* __QNXNTO__ */ 126 130 #include <stdarg.h> 127 131 #include <assert.h> 128 132 #include <ctype.h>