From c79929401871eaf87a3d84d06e350a38b6768bbf Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Sat, 7 Apr 2018 17:13:54 +0200 Subject: [PATCH] external draw fixes3 --- src/fidgetspinner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fidgetspinner.cpp b/src/fidgetspinner.cpp index af1375d8..4c9914ca 100644 --- a/src/fidgetspinner.cpp +++ b/src/fidgetspinner.cpp @@ -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,