external draw fixes3

This commit is contained in:
BenCat07 2018-04-07 17:13:54 +02:00
parent 1337221485
commit c799294018

View File

@ -93,7 +93,7 @@ void DrawSpinner()
const glez_rgba_t color = glez_rgba(255, 255, 255, 255);
draw_api::texture_handle_t text = draw_api::create_texture("/opt/cathook/data/res/atlas.png");
while (!text)
while (!text.handle)
text = draw_api::create_texture("/opt/cathook/data/res/atlas.png");
draw_api::draw_rect_textured(draw::width / 2, draw::height / 2, size, size, colors::white,
text, 0 + 64 * state, (3 + (v9mode ? 1 : 0)) * 64, 64, 64,