From 2040984666cb08cd7d0a54623f0cf114b2883eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Sat, 15 Oct 2022 13:51:22 +0200 Subject: [PATCH] update minimal texgen --- code/games/minimal/src/texgen.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/code/games/minimal/src/texgen.c b/code/games/minimal/src/texgen.c index f19e186..d3483b8 100644 --- a/code/games/minimal/src/texgen.c +++ b/code/games/minimal/src/texgen.c @@ -6,16 +6,12 @@ Texture2D texgen_build_anim(asset_id id, int64_t counter) { (void)counter; switch (id) { - default: return GenColorEco(ColorFromHSV(id * 240.0f, 0.6f, 0.45f)); break; + default: return texgen_build_anim_fallback(id, counter); break; } } Texture2D texgen_build_sprite(asset_id id) { switch (id) { - case ASSET_BLANK: return GenColorEco(WHITE); break; - case ASSET_BUILDMODE_HIGHLIGHT: return GenColorEco(WHITE); break; - case ASSET_BLOCK_FRAME: return GenFrameRect(); break; - - default: return GenColorEco(ColorFromHSV(id * 240.0f, 0.6f, 0.45f)); break; + default: return texgen_build_sprite_fallback(id); break; } }