Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dreamcast
Framebuffer Tricks
Commits
53a831e1
Commit
53a831e1
authored
May 04, 2024
by
Donald Haase
Browse files
Properly use speed arg of vid_shake
parent
f7bc915a
Changes
1
Hide whitespace changes
Inline
Side-by-side
FB_tricks.c
View file @
53a831e1
...
...
@@ -60,12 +60,12 @@ void vid_shake(char speed) {
for
(
j
=
(
shake_dist
*
-
1
);
j
<
shake_dist
;
j
+=
shake_stride
)
{
PVR_SET
(
PVR_BITMAP_Y
,
((
bitmapy
+
j
)
<<
16
)
|
(
bitmapy
+
j
));
thd_sleep
(
5
);
thd_sleep
(
speed
);
}
for
(
j
=
shake_dist
;
j
>
(
shake_dist
*
-
1
);
j
-=
shake_stride
)
{
PVR_SET
(
PVR_BITMAP_Y
,
((
bitmapy
+
j
)
<<
16
)
|
(
bitmapy
+
j
));
thd_sleep
(
5
);
thd_sleep
(
speed
);
}
}
...
...
@@ -246,7 +246,7 @@ int main(int argc, char **argv) {
continue
;
}
else
if
(
st
->
buttons
&
CONT_A
)
{
vid_shake
(
-
1
);
vid_shake
(
5
);
start_secs
=
0
;
}
else
if
(
st
->
buttons
&
CONT_B
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment