Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
libretro-cap32
Commits
5fd14689
Commit
5fd14689
authored
Sep 13, 2021
by
David Skywalker
Browse files
minor fixes from lgtm-com tests
parent
d4e9c83a
Pipeline
#52155
passed with stages
in 1 minute and 51 seconds
Changes
2
Pipelines
2
Expand all
Show whitespace changes
Inline
Side-by-side
cap32/crtc_test.c
deleted
100644 → 0
View file @
d4e9c83a
This diff is collapsed.
Click to expand it.
libretro/retro_ui.c
View file @
5fd14689
...
...
@@ -75,7 +75,7 @@ static mu_Context *ctx;
#define UI_STRING_X 70 * EMULATION_SCALE
#define UI_STRING_Y 2
void
_render_window
(
mu_Context
*
ctx
)
void
_render_window
()
{
if
(
mu_begin_window_ex
(
...
...
@@ -115,7 +115,7 @@ void _process_click(int clicked)
mu_input_mouseup
(
ctx
,
mouse
.
x
,
mouse
.
y
,
MU_MOUSE_LEFT
);
}
void
_process_input
(
mu_Context
*
ctx
)
void
_process_input
()
{
if
(
mouse
.
status
==
CURSOR_NONE
)
return
;
...
...
@@ -133,14 +133,14 @@ void _process_input(mu_Context *ctx)
mouse
.
status
=
CURSOR_NONE
;
}
void
_process_frame
(
mu_Context
*
ctx
)
void
_process_frame
()
{
mu_begin
(
ctx
);
_render_window
(
ctx
);
_render_window
();
mu_end
(
ctx
);
}
void
_process_commands
(
PIXEL_TYPE
*
buffer
,
mu_Context
*
ctx
)
void
_process_commands
(
PIXEL_TYPE
*
buffer
)
{
mu_Command
*
cmd
=
NULL
;
while
(
mu_next_command
(
ctx
,
&
cmd
))
{
...
...
@@ -325,12 +325,12 @@ void retro_ui_process()
_process_statusbar
();
}
_process_input
(
ctx
);
_process_input
();
if
(
ui_status
&
INTERNAL_UI_MENU
)
{
_process_frame
(
ctx
);
_process_commands
(
video_buffer
,
ctx
);
_process_frame
();
_process_commands
(
video_buffer
);
}
if
(
ui_status
&
(
INTERNAL_UI_STATUSBAR
^
0xFF
))
...
...
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