diff options
author | Steve Price <steve@FreeBSD.org> | 1999-12-27 02:24:30 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 1999-12-27 02:24:30 +0000 |
commit | a08d0fc53fa06d278c80df68a9a40b88e357591b (patch) | |
tree | 85772236e476a67404beaab94dc888d9a81e4bcc /x11/qrash/files/patch-aq | |
parent | Adding p5-Apache-DBI version 0.87. (diff) |
Adding qrash version 1.0
An animated musical demo for X11.
PR: 14554
Submitted by: Trevor Johnson <trevor@jpj.net>
Notes
Notes:
svn path=/head/; revision=24143
Diffstat (limited to 'x11/qrash/files/patch-aq')
-rw-r--r-- | x11/qrash/files/patch-aq | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/x11/qrash/files/patch-aq b/x11/qrash/files/patch-aq new file mode 100644 index 000000000000..6532609544e2 --- /dev/null +++ b/x11/qrash/files/patch-aq @@ -0,0 +1,29 @@ +--- space.cc.orig Sun Dec 26 17:28:16 1999 ++++ space.cc Sun Dec 26 17:29:43 1999 +@@ -31,8 +31,8 @@ + "anvil.asc", + "abomb2.asc", + "vette.asc" }; +-const N_OBJECTS = sizeof(obj_names) / sizeof(char*); +-const N_MAN=5; ++const int N_OBJECTS = sizeof(obj_names) / sizeof(char*); ++const int N_MAN=5; + + struct Space: public Part { + +@@ -149,13 +149,13 @@ + VID_MAX_SIZE_X/2 - 2*cur_timer*VID_MAX_SIZE_X/sysTimerRes ); + objects[cur_object]->Draw( 0, color, bw ); + +- static offset = 0; ++ static int offset = 0; + vidSizeY /= 2; vidBytesPerLine *= 2; + vidCopyPage(color+offset,back->data); + vidSizeY *= 2; vidBytesPerLine /= 2; + offset = vidBytesPerLine - offset; + +- static prev_row = -1, delta = 0, prev_time = 0, mirror = 1; ++ static int prev_row = -1, delta = 0, prev_time = 0, mirror = 1; + if( row/12 != prev_row ) { + delta = -vidSizeX/5; + mirror = -mirror; |