external draw fixes2
This commit is contained in:
parent
ed74c7c66e
commit
1337221485
@ -92,12 +92,11 @@ void DrawSpinner()
|
|||||||
|
|
||||||
const glez_rgba_t color = glez_rgba(255, 255, 255, 255);
|
const glez_rgba_t color = glez_rgba(255, 255, 255, 255);
|
||||||
|
|
||||||
static glez_texture_t tex =
|
draw_api::texture_handle_t text = draw_api::create_texture("/opt/cathook/data/res/atlas.png");
|
||||||
glez_texture_load_png_rgba("/opt/cathook/data/res/atlas.png");
|
while (!text)
|
||||||
while (!tex)
|
text = draw_api::create_texture("/opt/cathook/data/res/atlas.png");
|
||||||
tex = glez_texture_load_png_rgba("/opt/cathook/data/res/atlas.png");
|
|
||||||
draw_api::draw_rect_textured(draw::width / 2, draw::height / 2, size, size, colors::white,
|
draw_api::draw_rect_textured(draw::width / 2, draw::height / 2, size, size, colors::white,
|
||||||
{tex}, 0 + 64 * state, (3 + (v9mode ? 1 : 0)) * 64, 64, 64,
|
text, 0 + 64 * state, (3 + (v9mode ? 1 : 0)) * 64, 64, 64,
|
||||||
angle);
|
angle);
|
||||||
if (angle > PI * 4)
|
if (angle > PI * 4)
|
||||||
angle -= PI * 4;
|
angle -= PI * 4;
|
||||||
|
Reference in New Issue
Block a user