projects
/
gbajam22
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
25d227e
)
fixed shitty unmoving polygon in splash screen
author
John Tsiombikas
<nuclear@member.fsf.org>
Sat, 29 Oct 2022 13:11:57 +0000
(16:11 +0300)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Sat, 29 Oct 2022 13:11:57 +0000
(16:11 +0300)
src/logoscr.c
patch
|
blob
|
history
diff --git
a/src/logoscr.c
b/src/logoscr.c
index
7269743
..
f94b3e5
100644
(file)
--- a/
src/logoscr.c
+++ b/
src/logoscr.c
@@
-59,12
+59,15
@@
static int logoscr_start(void)
nfaces = sizeof logomesh / sizeof *logomesh / 3;
pos = malloc_nf(nfaces * sizeof *pos);
+ srand(0);
for(i=0; i<nfaces; i++) {
pos[i].x = (rand() & 0xffff) - 0x8000;
pos[i].y = (rand() & 0xffff) - 0x8000;
pos[i].x += pos[i].x << 4;
pos[i].y += pos[i].y << 4;
}
+ pos[57].x = -0x40000;
+ pos[57].y = 0x20000;
spr_setup(16, 8, spr_logo_pixels, spr_logo_cmap);
/* setup blank glint palette */