updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / love05 / love-patch.diff
blob3e26116aa69bb33af693bad6134cd3beca9ef1b6
1 diff -Naur love-0.5-0/src/love.cpp love-0.5-0.new/src/love.cpp
2 --- love-0.5-0/src/love.cpp 2008-09-20 16:40:20.000000000 +0200
3 +++ love-0.5-0.new/src/love.cpp 2009-12-26 20:07:41.000000000 +0100
4 @@ -56,10 +56,16 @@
5 STATIC_MOD_EXTERN(love_sdljoystick);
6 STATIC_MOD_EXTERN(love_system);
8 -using namespace love;
9 + using namespace love;
11 + static char* fakeExeName = "/usr/bin/love";
13 + int main(int argc, char* argv[])
16 + // fake exe name to allow call by other name than love, i.e. love05 (without symlink)
17 + argv[0] = fakeExeName;
19 -int main(int argc, char* argv[])
20 -{
21 // Create a core.
22 pCore core(new Core());
24 diff -Naur love-0.5-0/src/opengl/Image.cpp love-0.5-0.new/src/opengl/Image.cpp
25 --- love-0.5-0/src/opengl/Image.cpp 2008-09-20 16:40:14.000000000 +0200
26 +++ love-0.5-0.new/src/opengl/Image.cpp 2009-12-26 20:05:52.000000000 +0100
27 @@ -376,7 +376,7 @@
28 ilBindImage(image);
30 // Create the new image
31 - ilTexImage(width, height, depth, bpp, format, type, (ILvoid*)d);
32 + ilTexImage(width, height, depth, bpp, format, type, (void*)d);
34 // Set new "real" dimensions
35 this->textureWidth = width;
36 @@ -518,7 +518,7 @@
37 ilBindImage(image);
39 // Create the new image
40 - ilTexImage(width, height, depth, bpp, format, type, (ILvoid*)data);
41 + ilTexImage(width, height, depth, bpp, format, type, (void*)data);
43 // Set the new image dimensions.
44 this->textureWidth = width;
45 diff -Naur love-0.5-0/src/opengl/ImageFont.cpp love-0.5-0.new/src/opengl/ImageFont.cpp
46 --- love-0.5-0/src/opengl/ImageFont.cpp 2008-09-20 16:40:14.000000000 +0200
47 +++ love-0.5-0.new/src/opengl/ImageFont.cpp 2009-12-26 20:05:52.000000000 +0100
48 @@ -1,8 +1,11 @@
49 #include "ImageFont.h"
51 +#include <cstdio>
52 #include <SDL_opengl.h>
55 using std::string;
56 +using std::printf;
58 namespace love_opengl
60 diff -Naur love-0.5-0/src/opengl/love_opengl.cpp love-0.5-0.new/src/opengl/love_opengl.cpp
61 --- love-0.5-0/src/opengl/love_opengl.cpp 2008-09-20 16:40:14.000000000 +0200
62 +++ love-0.5-0.new/src/opengl/love_opengl.cpp 2009-12-26 20:05:52.000000000 +0100
63 @@ -1598,7 +1598,7 @@
65 ilGenImages(1, &image);
66 ilBindImage(image);
67 - ilTexImage(w, h, 1, 3, IL_RGB, IL_UNSIGNED_BYTE, (ILvoid*)pixels);
68 + ilTexImage(w, h, 1, 3, IL_RGB, IL_UNSIGNED_BYTE, (void*)pixels);
70 // Create the image.
71 ilSaveL(IL_BMP, pixels, 0);
72 diff -Naur love-0.5-0/src/physfs/File.cpp love-0.5-0.new/src/physfs/File.cpp
73 --- love-0.5-0/src/physfs/File.cpp 2008-09-20 16:40:17.000000000 +0200
74 +++ love-0.5-0.new/src/physfs/File.cpp 2009-12-26 20:05:52.000000000 +0100
75 @@ -1,4 +1,5 @@
76 #include "File.h"
77 +#include <string.h>
79 namespace love_physfs