mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
a08d0fc53f
An animated musical demo for X11. PR: 14554 Submitted by: Trevor Johnson <trevor@jpj.net>
30 lines
929 B
Plaintext
30 lines
929 B
Plaintext
--- 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;
|