Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/ltris ltris: Update to 1.0.20



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f34168e4b6e8
branches:  trunk
changeset: 433965:f34168e4b6e8
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Tue Jun 09 11:25:00 2020 +0000

description:
ltris: Update to 1.0.20

Changelog:
After watching CTWC (which is awesome) and starting to play tetris
again myself I finally took the time to add wide screen support to
LTris (my monitor gave me severe seizures in fullscreen...) by
using a shadow surface. It is just software scaling but hey at
least it is playable again in fullscreen.

As with Barrage: SDL will return bad mouse positions if switching
window -> fullscreen. You'll need to switch and then restart the
game. Nothing I can do about it, sorry.

diffstat:

 games/ltris/Makefile                  |    5 +-
 games/ltris/distinfo                  |   14 +--
 games/ltris/patches/patch-src_sdl.c   |  103 ----------------------------------
 games/ltris/patches/patch-src_sdl.h   |   56 ------------------
 games/ltris/patches/patch-src_tools.c |   81 --------------------------
 games/ltris/patches/patch-src_tools.h |   34 -----------
 6 files changed, 7 insertions(+), 286 deletions(-)

diffs (truncated from 324 to 300 lines):

diff -r 42c96da6d5ac -r f34168e4b6e8 games/ltris/Makefile
--- a/games/ltris/Makefile      Tue Jun 09 11:07:40 2020 +0000
+++ b/games/ltris/Makefile      Tue Jun 09 11:25:00 2020 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.30 2020/03/20 11:57:43 nia Exp $
+# $NetBSD: Makefile,v 1.31 2020/06/09 11:25:00 ryoon Exp $
 
-DISTNAME=      ltris-1.0.19
-PKGREVISION=   1
+DISTNAME=      ltris-1.0.20
 CATEGORIES=    games
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=lgames/}
 
diff -r 42c96da6d5ac -r f34168e4b6e8 games/ltris/distinfo
--- a/games/ltris/distinfo      Tue Jun 09 11:07:40 2020 +0000
+++ b/games/ltris/distinfo      Tue Jun 09 11:25:00 2020 +0000
@@ -1,12 +1,8 @@
-$NetBSD: distinfo,v 1.10 2015/11/03 20:56:58 agc Exp $
+$NetBSD: distinfo,v 1.11 2020/06/09 11:25:00 ryoon Exp $
 
-SHA1 (ltris-1.0.19.tar.gz) = 6f9b0f3ff2de73e55d4e880b502c925f7168b2b6
-RMD160 (ltris-1.0.19.tar.gz) = 14db0c69f6fe3ac4e3eed64e268ec565111f86cc
-SHA512 (ltris-1.0.19.tar.gz) = ab43b3d8f04ab40016be5b5c414f8679bee4f5f344ef9cab52c3628d48017458b84b0fbc0bcaecdfab43853a1ef628ee1cabf3a1373ea108650d4e76015881c5
-Size (ltris-1.0.19.tar.gz) = 883543 bytes
+SHA1 (ltris-1.0.20.tar.gz) = 63bd13e1d94f0930672cd005020267f311cdaf6e
+RMD160 (ltris-1.0.20.tar.gz) = 5b82d41058df61ba7db59b4f818013cd55ddc530
+SHA512 (ltris-1.0.20.tar.gz) = 92861bdb4b43750edbdb31c999e106b0f166cae736b598caba3028b26651502f6b4e81d0b7c92df38d96223c899450ddaa445ab186198dfeb21617340eb73d26
+Size (ltris-1.0.20.tar.gz) = 897167 bytes
 SHA1 (patch-aa) = 951a8dba5a263338be2ff46d7faddc8216aa8345
 SHA1 (patch-ab) = 1b06b8a065fa6b4231a3b8d49f6111b37033e5aa
-SHA1 (patch-src_sdl.c) = 84f93458bd6998f114688409019ac65466139bed
-SHA1 (patch-src_sdl.h) = 4cd62fad8e624bd17c25620682c20ef2839df599
-SHA1 (patch-src_tools.c) = 49d823afae73dcf1f80d17179c0459a60764b4bb
-SHA1 (patch-src_tools.h) = 34000dc5c7d6ee60ea462aca0f88e697ca7599ce
diff -r 42c96da6d5ac -r f34168e4b6e8 games/ltris/patches/patch-src_sdl.c
--- a/games/ltris/patches/patch-src_sdl.c       Tue Jun 09 11:07:40 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,103 +0,0 @@
-$NetBSD: patch-src_sdl.c,v 1.1 2013/03/02 18:11:07 joerg Exp $
-
---- src/sdl.c.orig     2013-03-01 22:03:50.000000000 +0000
-+++ src/sdl.c
-@@ -244,7 +244,7 @@ done:
- #endif
- 
- /* return full path of bitmap */
--inline void get_full_bmp_path( char *full_path, char *file_name )
-+void get_full_bmp_path( char *full_path, char *file_name )
- {
-     sprintf(full_path,  "%s/gfx/%s", SRC_DIR, file_name );
- }
-@@ -330,7 +330,7 @@ void free_surf( SDL_Surface **surf )
- /*
-     lock surface
- */
--inline void lock_surf(SDL_Surface *sur)
-+void lock_surf(SDL_Surface *sur)
- {
-     if (SDL_MUSTLOCK(sur))
-         SDL_LockSurface(sur);
-@@ -339,7 +339,7 @@ inline void lock_surf(SDL_Surface *sur)
- /*
-     unlock surface
- */
--inline void unlock_surf(SDL_Surface *sur)
-+void unlock_surf(SDL_Surface *sur)
- {
-     if (SDL_MUSTLOCK(sur))
-         SDL_UnlockSurface(sur);
-@@ -666,7 +666,7 @@ int write_text(Font *fnt, SDL_Surface *d
- /*
-     lock font surface
- */
--inline void lock_font(Font *fnt)
-+void lock_font(Font *fnt)
- {
-     if (SDL_MUSTLOCK(fnt->pic))
-         SDL_LockSurface(fnt->pic);
-@@ -675,7 +675,7 @@ inline void lock_font(Font *fnt)
- /*
-     unlock font surface
- */
--inline void unlock_font(Font *fnt)
-+void unlock_font(Font *fnt)
- {
-     if (SDL_MUSTLOCK(fnt->pic))
-         SDL_UnlockSurface(fnt->pic);
-@@ -905,7 +905,7 @@ void hardware_cap()
- /*
-     update rectangle (0,0,0,0)->fullscreen
- */
--inline void refresh_screen(int x, int y, int w, int h)
-+void refresh_screen(int x, int y, int w, int h)
- {
-     SDL_UpdateRect(sdl.screen, x, y, w, h);
- }
-@@ -1055,7 +1055,7 @@ void wait_for_click()
- /*
-     lock surface
- */
--inline void lock_screen()
-+void lock_screen()
- {
-     if (SDL_MUSTLOCK(sdl.screen))
-         SDL_LockSurface(sdl.screen);
-@@ -1064,7 +1064,7 @@ inline void lock_screen()
- /*
-     unlock surface
- */
--inline void unlock_screen()
-+void unlock_screen()
- {
-     if (SDL_MUSTLOCK(sdl.screen))
-         SDL_UnlockSurface(sdl.screen);
-@@ -1073,7 +1073,7 @@ inline void unlock_screen()
- /*
-     flip hardware screens (double buffer)
- */
--inline void flip_screen()
-+void flip_screen()
- {
-     SDL_Flip(sdl.screen);
- }
-@@ -1132,7 +1132,7 @@ SDL_Cursor* create_cursor( int width, in
- /*
-     get milliseconds since last call
- */
--inline int get_time()
-+int get_time()
- {
-     int ms;
-     cur_time = SDL_GetTicks();
-@@ -1148,7 +1148,7 @@ inline int get_time()
- /*
-     reset timer
- */
--inline void reset_timer()
-+void reset_timer()
- {
-     last_time = SDL_GetTicks();
- }
diff -r 42c96da6d5ac -r f34168e4b6e8 games/ltris/patches/patch-src_sdl.h
--- a/games/ltris/patches/patch-src_sdl.h       Tue Jun 09 11:07:40 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,56 +0,0 @@
-$NetBSD: patch-src_sdl.h,v 1.1 2013/03/02 18:11:07 joerg Exp $
-
---- src/sdl.h.orig     2013-03-01 22:03:43.000000000 +0000
-+++ src/sdl.h
-@@ -41,8 +41,8 @@ typedef struct {
- SDL_Surface* load_surf(char *fname, int f);
- SDL_Surface* create_surf(int w, int h, int f);
- void free_surf( SDL_Surface **surf );
--inline void lock_surf(SDL_Surface *sur);
--inline void unlock_surf(SDL_Surface *sur);
-+void lock_surf(SDL_Surface *sur);
-+void unlock_surf(SDL_Surface *sur);
- void blit_surf(void);
- void alpha_blit_surf(int alpha);
- void fill_surf(int c);
-@@ -86,8 +86,8 @@ Font* load_font(char *fname);
- Font* load_fixed_font(char *fname, int off, int len, int w);
- void free_font(Font **sfnt);
- int  write_text(Font *sfnt, SDL_Surface *dest, int x, int y, char *str, int alpha);
--inline void lock_font(Font *sfnt);
--inline void unlock_font(Font *sfnt);
-+void lock_font(Font *sfnt);
-+void unlock_font(Font *sfnt);
- SDL_Rect last_write_rect(Font *fnt);
- int  text_width(Font *fnt, char *str);
- 
-@@ -132,14 +132,14 @@ Video_Mode* cur_video_mode();
- char** get_mode_names( int *count );
- int  set_video_mode( Video_Mode mode );
- void hardware_cap();
--inline void refresh_screen( int x, int y, int w, int h );
-+void refresh_screen( int x, int y, int w, int h );
- void refresh_rects();
- void add_refresh_rect(int x, int y, int w, int h);
- int  wait_for_key();
- void wait_for_click();
--inline void lock_screen();
--inline void unlock_screen();
--inline void flip_screen();
-+void lock_screen();
-+void unlock_screen();
-+void flip_screen();
- void fade_screen( int type, int ms );
- void take_screenshot( int i );
- 
-@@ -148,8 +148,8 @@ void take_screenshot( int i );
- SDL_Cursor* create_cursor( int width, int height, int hot_x, int hot_y, char *source );
- 
- /* timer */
--inline int get_time();
--inline void reset_timer();
-+int get_time();
-+void reset_timer();
- 
- #ifdef __cplusplus
- };
diff -r 42c96da6d5ac -r f34168e4b6e8 games/ltris/patches/patch-src_tools.c
--- a/games/ltris/patches/patch-src_tools.c     Tue Jun 09 11:07:40 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,81 +0,0 @@
-$NetBSD: patch-src_tools.c,v 1.1 2013/03/02 18:11:07 joerg Exp $
-
---- src/tools.c.orig   2013-03-01 22:02:55.000000000 +0000
-+++ src/tools.c
-@@ -23,27 +23,27 @@
- #include "ltris.h"
- 
- /* compares to strings and returns true if their first strlen(str1) chars are equal */
--inline int strequal( char *str1, char *str2 )
-+int strequal( char *str1, char *str2 )
- {
-     if ( strlen( str1 ) != strlen( str2 ) ) return 0;
-     return ( !strncmp( str1, str2, strlen( str1 ) ) );
- }
- 
- /* set delay to ms milliseconds */
--inline void delay_set( Delay *delay, int ms )
-+void delay_set( Delay *delay, int ms )
- {
-     delay->limit = ms;
-     delay->cur = 0;
- }
- 
- /* reset delay ( cur = 0 )*/
--inline void delay_reset( Delay *delay )
-+void delay_reset( Delay *delay )
- {
-     delay->cur = 0;
- }
- 
- /* check if times out and reset */
--inline int delay_timed_out( Delay *delay, int ms )
-+int delay_timed_out( Delay *delay, int ms )
- {
-     delay->cur += ms;
-     if ( delay->cur >= delay->limit ) {
-@@ -56,12 +56,12 @@ inline int delay_timed_out( Delay *delay
- }
- 
- /* set timer so that we have a time out next call of delay_timed_out() */
--inline void delay_force_time_out( Delay *delay )
-+void delay_force_time_out( Delay *delay )
- {
-     delay->cur = delay->limit;
- }
- 
--inline void goto_tile( int *x, int *y, int d )
-+void goto_tile( int *x, int *y, int d )
- {
-     /*  0 -up, clockwise, 5 - left up */
-     switch ( d ) {
-@@ -326,24 +326,24 @@ Counter with a current float value and a
- the target value until reached when counter_update() is called.
- ====================================================================
- */
--inline void counter_set( Counter *counter, double value )
-+void counter_set( Counter *counter, double value )
- {
-     counter->value = value;
-     counter->approach = value;
- }
--inline void counter_add( Counter *counter, double add )
-+void counter_add( Counter *counter, double add )
- {
-     counter->value += add;
- }
--inline double counter_get_approach( Counter counter )
-+double counter_get_approach( Counter counter )
- {
-     return counter.approach;
- }
--inline double counter_get( Counter counter )
-+double counter_get( Counter counter )
- {
-     return counter.value;
- }
--inline void counter_update( Counter *counter, int ms )
-+void counter_update( Counter *counter, int ms )
- {
-     double change;
-     if ( counter->approach == counter->value ) return;
diff -r 42c96da6d5ac -r f34168e4b6e8 games/ltris/patches/patch-src_tools.h
--- a/games/ltris/patches/patch-src_tools.h     Tue Jun 09 11:07:40 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-$NetBSD: patch-src_tools.h,v 1.1 2013/03/02 18:11:07 joerg Exp $
-
---- src/tools.h.orig   2013-03-01 22:02:58.000000000 +0000
-+++ src/tools.h
-@@ -33,7 +33,7 @@
- #define VEC_DIST( vec1, vec2 ) ( sqrt( ( vec1.x - vec2.x ) * ( vec1.x - vec2.x ) + ( vec1.y - vec2.y ) * ( vec1.y - vec2.y ) ) )
- 
- /* compares to strings and returns true if their first strlen(str1) chars are equal */
--inline int strequal( char *str1, char *str2 );
-+int strequal( char *str1, char *str2 );



Home | Main Index | Thread Index | Old Index