Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
RiscOS
S
Sources
V
Video
UserI
ScrSaver
Commits
136dd2b5
Commit
136dd2b5
authored
Jun 16, 1997
by
Owen Love
Browse files
Added function to check Saver window is always at the front
parent
6eabd1e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
c/app
c/app
+14
-0
No files found.
c/app
View file @
136dd2b5
...
...
@@ -221,6 +221,19 @@ static void calc_max_coords_for_current_mode_and_sprite(void)
calc_to_nearest_even_number
(
bottom_edge
);
}
/* Open a large black window that covers the screen */
static
void
ensure_saver_window_at_front
(
void
)
{
wimp_wstate
state
;
wimp_get_wind_state
(
main_handle
,
&
state
);
if
(
state
.
o
.
behind
!=
-
1
)
{
state
.
o
.
behind
=
-
1
;
wimpt_noerr
(
wimp_open_wind
(
&
state
.
o
));
}
}
/***************************************************************************/
/* Read the current sprite size */
...
...
@@ -404,6 +417,7 @@ static void plot_moving_routine(void)
/* Which sprite plot are we on ? */
static
void
sprite_plot_routine
(
void
)
{
ensure_saver_window_at_front
();
if
(
intro_done
==
FALSE
)
plot_intro_animation
();
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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