All good now! Also removed an unused var.
This commit is contained in:
parent
a4f7535a03
commit
e9beeee7be
|
@ -58,7 +58,7 @@ f32 djui_gfx_get_scale(void) {
|
|||
/////////////////////////////////////////////
|
||||
|
||||
static const Vtx vertex_djui_image[] = {
|
||||
{{{ 0, -1, 0 }, 0, { 0, 0 }, { 0xff, 0xff, 0xff, 0xff }}},
|
||||
{{{ 0, -1, 0 }, 0, { 0, 2048 }, { 0xff, 0xff, 0xff, 0xff }}},
|
||||
{{{ 1, -1, 0 }, 0, { 2048, 2048 }, { 0xff, 0xff, 0xff, 0xff }}},
|
||||
{{{ 1, 0, 0 }, 0, { 2048, 0 }, { 0xff, 0xff, 0xff, 0xff }}},
|
||||
{{{ 0, 0, 0 }, 0, { 0, 0 }, { 0xff, 0xff, 0xff, 0xff }}},
|
||||
|
@ -167,7 +167,7 @@ void djui_gfx_size_translate(f32* size) {
|
|||
u32 windowWidth, windowHeight;
|
||||
wm_api->get_dimensions(&windowWidth, &windowHeight);
|
||||
|
||||
*size = *size * ((f32)SCREEN_HEIGHT / (f32)windowHeight) * djui_gfx_get_scale()
|
||||
*size = *size * ((f32)SCREEN_HEIGHT / (f32)windowHeight) * djui_gfx_get_scale();
|
||||
}
|
||||
|
||||
bool djui_gfx_add_clipping_specific(struct DjuiBase* base, f32 dX, f32 dY, f32 dW, f32 dH) {
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
#include "src/pc/configfile.h"
|
||||
#include "src/game/level_update.h"
|
||||
|
||||
static bool sChangedScale = false;
|
||||
|
||||
static struct DjuiSelectionbox* sLevelBox = NULL;
|
||||
|
||||
static void djui_panel_random_menu(UNUSED struct DjuiBase* caller) {
|
||||
|
|
Loading…
Reference in New Issue