Changeset 98144
- Timestamp:
- Sep 26, 2012, 10:00:00 AM (12 years ago)
- Location:
- trunk/dports/games/sdl_sopwith
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/games/sdl_sopwith/Portfile
r84271 r98144 6 6 7 7 name sdl_sopwith 8 version 1.7.4 9 revision 1 8 version 1.7.5 10 9 categories games 11 10 platforms darwin … … 19 18 master_sites sourceforge:project/sdl-sopwith/${name}/${version}/ 20 19 distname sopwith-${version} 21 checksums md5 f7bd8f754409aedd003b5b99d20f06dd\22 sha1 e2523afb16ce04fe772468f5a3d027a162460d46\23 rmd160 f1ba6723d7606cdff00e43e593199040f1e1127c20 checksums md5 9a474203245d4b1052f17accd1553992 \ 21 sha1 018051a8524ced03e5e5a6c08cef67e663149e20 \ 22 rmd160 cb36db3a78e6d509d136c3ae37aad61f9d9012b6 24 23 25 24 depends_build port:pkgconfig … … 28 27 patchfiles src_Makefile.in.patch src_sdl_video.c.patch \ 29 28 src_swmain.c.patch configure.patch 29 post-patch { 30 file delete ${worksrcpath}/config.cache ${worksrcpath}/config.log \ 31 ${worksrcpath}/config.status 32 } 30 33 31 34 configure.args --mandir=${prefix}/share/man \ -
trunk/dports/games/sdl_sopwith/files/src_sdl_video.c.patch
r83715 r98144 1 --- src/sdl/video.c.orig 201 0-07-07 08:19:39.000000000 +10002 +++ src/sdl/video.c 201 1-09-10 03:33:26.000000000 +10003 @@ -2 13,7 +213,7 @@ static void set_icon(sopsym_t *sym)1 --- src/sdl/video.c.orig 2012-09-20 08:59:39.000000000 +1000 2 +++ src/sdl/video.c 2012-09-26 19:19:05.000000000 +1000 3 @@ -222,7 +222,7 @@ static void set_icon(sopsym_t *sym) 4 4 5 5 static void Vid_UnsetMode() 6 6 { 7 - 8 + 7 - SDL_QuitSubSystem(SDL_INIT_VIDEO); 8 + SDL_FreeSurface(screenbuf); 9 9 } 10 10 11 static void Vid_SetMode()12 @@ - 225,8 +225,6 @@ static void Vid_SetMode()11 12 @@ -368,8 +368,6 @@ static void Vid_SetMode() 13 13 printf("CGA Screen Emulation\n"); 14 14 printf("init screen: "); … … 19 19 set_icon(symbol_plane[rand() % 2][rand() % 16]); 20 20 21 @@ - 252,6 +250,11 @@ static void Vid_SetMode()21 @@ -395,6 +393,11 @@ static void Vid_SetMode() 22 22 exit(-1); 23 23 } … … 31 31 32 32 for (n = 0; n < NUM_KEYS; ++n) 33 @@ - 261,6 +264,7 @@ static void Vid_SetMode()33 @@ -404,6 +407,7 @@ static void Vid_SetMode() 34 34 35 35 SDL_SetColors(screen, cga_pal, 0, sizeof(cga_pal)/sizeof(*cga_pal)); 36 36 SDL_SetColors(screenbuf, cga_pal, 0, sizeof(cga_pal)/sizeof(*cga_pal)); 37 37 + SDL_LockSurface(screenbuf); 38 }39 38 40 void Vid_Shutdown() 41 @@ -270,7 +274,7 @@ void Vid_Shutdown() 39 // create custom key file 40 Create_Custom_File(); 41 @@ -418,7 +422,7 @@ void Vid_Shutdown() 42 42 43 43 Vid_UnsetMode(); … … 48 48 initted = 0; 49 49 } 50 @@ - 282,18 +286,13 @@ void Vid_Init()50 @@ -430,18 +434,13 @@ void Vid_Init() 51 51 52 52 fflush(stdout);
Note: See TracChangeset
for help on using the changeset viewer.