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
51b30eda
Commit
51b30eda
authored
Jan 12, 2024
by
Donald Haase
Browse files
Correct misnamed function call. Define protect functions now added in MB PR.
parent
04abd448
Changes
1
Hide whitespace changes
Inline
Side-by-side
FB_tricks.c
View file @
51b30eda
...
...
@@ -32,6 +32,8 @@ const char *filenames[] = {
#define TIMEOUT_SECS 2
/* If old MB model, we don't have these nice helpers yet */
#ifdef VID_MAX_FB
/* These might be something to add into video.c */
void
vid_disable
(
void
)
{
/* Blank screen and reset display enable (looks nicer) */
...
...
@@ -44,6 +46,7 @@ void vid_enable(void) {
PVR_SET
(
PVR_VIDEO_CFG
,
PVR_GET
(
PVR_VIDEO_CFG
)
&
~
8
);
PVR_SET
(
PVR_FB_CFG_1
,
PVR_GET
(
PVR_FB_CFG_1
)
|
1
);
}
#endif
void
vid_shake
(
char
speed
)
{
uint32
bitmapy
=
vid_mode
->
bitmapy
;
...
...
@@ -262,7 +265,7 @@ int main(int argc, char **argv) {
if
(
cur_secs
>
(
start_secs
+
TIMEOUT_SECS
))
{
start_secs
=
cur_secs
;
//vid_flip(-1);
vid_s
quish
(
-
1
);
vid_s
hake
(
-
1
);
done
--
;
continue
;
}
...
...
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