Update ucccccp

This commit is contained in:
BenCat07 2018-06-13 16:23:04 +02:00
parent d1eea45877
commit 9cfa1c71b4
3 changed files with 13 additions and 6 deletions

6
.gitmodules vendored
View File

@ -1,6 +1,3 @@
[submodule "ucccccp"]
path = ucccccp
url = https://github.com/nullworks/ucccccp
[submodule "source-sdk-2013-headers"]
path = source-sdk-2013-headers
url = https://github.com/nullworks/source-sdk-2013-headers
@ -13,3 +10,6 @@
[submodule "simple-ipc"]
path = simple-ipc
url = https://github.com/nullworks/simple-ipc
[submodule "ucccccp"]
path = ucccccp
url = https://github.com/nullworks/ucccccp.git

View File

@ -64,6 +64,7 @@ static CatVar spinner_min_speed(CV_FLOAT, "fidgetspinner_min_speed", "2",
draw_api::texture_handle_t text{ GLEZ_TEXTURE_INVALID };
Timer retrytimer{};
void DrawSpinner()
{
if (not enable_spinner)
@ -96,8 +97,14 @@ void DrawSpinner()
const glez_rgba_t color = glez_rgba(255, 255, 255, 255);
if (text.handle == GLEZ_TEXTURE_INVALID)
text = draw_api::create_texture(DATA_PATH "/textures/atlas.png");
{
if (retrytimer.test_and_set(5000))
{
logging::Info("Invalid texture, retrying...");
text = draw_api::create_texture(DATA_PATH "/textures/atlas.png");
}
return;
}
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, angle);

@ -1 +1 @@
Subproject commit 70ec1ad99e11d1ea37796de0d69eeb38a8b4a200
Subproject commit e97ff4ad6fbd69a56156797a99527cc5a69c9e52