mirror of
https://github.com/libretro/RetroArch
synced 2025-03-21 13:20:52 +00:00
(Ozone) Cleanups
This commit is contained in:
parent
0ffb988554
commit
77f3e2b2ef
@ -30,20 +30,6 @@
|
|||||||
|
|
||||||
#include "../../../input/input_osk.h"
|
#include "../../../input/input_osk.h"
|
||||||
|
|
||||||
static float ozone_backdrop[16] = {
|
|
||||||
0.00, 0.00, 0.00, 0.75,
|
|
||||||
0.00, 0.00, 0.00, 0.75,
|
|
||||||
0.00, 0.00, 0.00, 0.75,
|
|
||||||
0.00, 0.00, 0.00, 0.75,
|
|
||||||
};
|
|
||||||
|
|
||||||
static float ozone_osk_backdrop[16] = {
|
|
||||||
0.00, 0.00, 0.00, 0.15,
|
|
||||||
0.00, 0.00, 0.00, 0.15,
|
|
||||||
0.00, 0.00, 0.00, 0.15,
|
|
||||||
0.00, 0.00, 0.00, 0.15,
|
|
||||||
};
|
|
||||||
|
|
||||||
static void ozone_cursor_animation_cb(void *userdata);
|
static void ozone_cursor_animation_cb(void *userdata);
|
||||||
|
|
||||||
static void ozone_animate_cursor(ozone_handle_t *ozone,
|
static void ozone_animate_cursor(ozone_handle_t *ozone,
|
||||||
@ -325,6 +311,12 @@ void ozone_draw_backdrop(
|
|||||||
unsigned video_height,
|
unsigned video_height,
|
||||||
float alpha)
|
float alpha)
|
||||||
{
|
{
|
||||||
|
static float ozone_backdrop[16] = {
|
||||||
|
0.00, 0.00, 0.00, 0.75,
|
||||||
|
0.00, 0.00, 0.00, 0.75,
|
||||||
|
0.00, 0.00, 0.00, 0.75,
|
||||||
|
0.00, 0.00, 0.00, 0.75,
|
||||||
|
};
|
||||||
/* TODO: Replace this backdrop by a blur shader
|
/* TODO: Replace this backdrop by a blur shader
|
||||||
* on the whole screen if available */
|
* on the whole screen if available */
|
||||||
gfx_display_set_alpha(ozone_backdrop, alpha);
|
gfx_display_set_alpha(ozone_backdrop, alpha);
|
||||||
@ -351,6 +343,12 @@ void ozone_draw_osk(ozone_handle_t *ozone,
|
|||||||
const char *text;
|
const char *text;
|
||||||
char message[2048];
|
char message[2048];
|
||||||
unsigned text_color;
|
unsigned text_color;
|
||||||
|
static float ozone_osk_backdrop[16] = {
|
||||||
|
0.00, 0.00, 0.00, 0.15,
|
||||||
|
0.00, 0.00, 0.00, 0.15,
|
||||||
|
0.00, 0.00, 0.00, 0.15,
|
||||||
|
0.00, 0.00, 0.00, 0.15,
|
||||||
|
};
|
||||||
static retro_time_t last_time = 0;
|
static retro_time_t last_time = 0;
|
||||||
struct string_list list = {0};
|
struct string_list list = {0};
|
||||||
float scale_factor = ozone->last_scale_factor;
|
float scale_factor = ozone->last_scale_factor;
|
||||||
@ -500,10 +498,8 @@ void ozone_draw_osk(ozone_handle_t *ozone,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
y_offset += 25 * scale_factor;
|
y_offset += 25 * scale_factor;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* Keyboard */
|
/* Keyboard */
|
||||||
gfx_display_draw_keyboard(
|
gfx_display_draw_keyboard(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user