Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 116850 Details for
Bug 128553
games-arcade/zatacka-0.1.5 ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
files/zatacka-0.1.7-gentoo.patch
zatacka-0.1.7-gentoo.patch (text/plain), 1.66 KB, created by
Tupone Alfredo
on 2007-04-20 20:13:49 UTC
(
hide
)
Description:
files/zatacka-0.1.7-gentoo.patch
Filename:
MIME Type:
Creator:
Tupone Alfredo
Created:
2007-04-20 20:13:49 UTC
Size:
1.66 KB
patch
obsolete
>--- fx.cpp.old 2007-04-20 21:30:39.000000000 +0200 >+++ fx.cpp 2007-04-20 21:32:27.000000000 +0200 >@@ -79,7 +79,7 @@ > pline[3].SetColor(0,255,0); > pline[4].SetColor(255,0,255); > pline[5].SetColor(255,255,255); >- bg=LoadImage("main_screen.jpg"); //load menu backgrount into SDL_Surface >+ bg=LoadImage("@GENTOO_DATADIR@/main_screen.jpg"); //load menu backgrount into SDL_Surface > font=TTF_OpenFont(FONT,20); > return (screen); //return pointer to screen surface > >@@ -103,7 +103,7 @@ > Uint32 borderclr=SDL_MapRGB(screen->format,128,128,0); > > if((strcmp(bgpath,"none"))){ //if I have a map >- strcpy(tmppath,"maps/"); >+ strcpy(tmppath,"@GENTOO_DATADIR@/maps/"); > strcat(tmppath,bgpath); > bgimage=LoadImage(tmppath); > xres=bgimage->clip_rect.w + 40; //need some place for score bar >@@ -336,7 +336,7 @@ > DispText(screen,barcolor,400,320,240,20,"(M) Map: none"); > DispText(screen,barcolor,400,345,220,20,"(S) Speed: 5"); > >- dir=opendir("maps"); //open maps directory >+ dir=opendir("@GENTOO_DATADIR@/maps"); //open maps directory > while(!quit){ > SDL_Delay(1); //don't use 100% cpu > while(SDL_PollEvent(&event)){ >@@ -711,7 +711,7 @@ > > int i,x,y; > SDL_Surface *image = new SDL_Surface; >- image = LoadImage("barrier.jpg"); >+ image = LoadImage("@GENTOO_DATADIR@/barrier.jpg"); > for(i=0; i<=count; i++){ > x=irand(xres); > y=irand(yres); >--- fx.h.old 2007-04-20 21:36:26.000000000 +0200 >+++ fx.h 2007-04-20 21:36:50.000000000 +0200 >@@ -41,7 +41,7 @@ > #define YRES 480 > #define MAXPL 6 > #define MAXROUNDS 10 >-#define FONT "font.ttf" >+#define FONT "@GENTOO_DATADIR@/font.ttf" > > SDL_Surface* Initialize(); /*initialization of game*/ > void disperr(char * text); /*desplay an error*/
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 128553
:
83743
|
83744
|
116848
| 116850