From 6010dd159056e432a1a503ed385926913c5a1be7 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Tue, 7 Jan 2025 22:10:06 -0500 Subject: [PATCH] Fix for blitting --- code/font/vefontcache/draw.odin | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/code/font/vefontcache/draw.odin b/code/font/vefontcache/draw.odin index 7fd8bb7..5b1fca1 100644 --- a/code/font/vefontcache/draw.odin +++ b/code/font/vefontcache/draw.odin @@ -758,19 +758,19 @@ batch_generate_glyphs_draw_list :: proc ( draw_list : ^Draw_List, for id, index in to_cache do parser_free_shape(entry.parser_info, glyph_pack[id].shape) profile_begin("generate_cached_draw_list: cached") - // colour.r = max(colour.r, 1.0 * enable_debug_vis_type) - // colour.g = max(colour.g, 1.0 * enable_debug_vis_type) - // colour.b = max(colour.b, 1.0 * enable_debug_vis_type) - generate_cached_draw_list( draw_list, glyph_pack[:], cached, colour ) + colour.r = max(colour.r, 1.0 * enable_debug_vis_type) + colour.g = max(colour.g, 1.0 * enable_debug_vis_type) + colour.b = max(colour.b, 1.0 * enable_debug_vis_type) + generate_cached_draw_list( draw_list, glyph_pack[:], to_cache, colour ) profile_end() } profile_end() profile_begin("generate_cached_draw_list: to_cache") - // colour.r = max(colour.r, 0.80 * enable_debug_vis_type) - // colour.g = max(colour.g, 0.25 * enable_debug_vis_type) - // colour.b = max(colour.b, 0.25 * enable_debug_vis_type) - generate_cached_draw_list( draw_list, glyph_pack[:], to_cache, colour ) + colour.r = max(colour.r, 0.80 * enable_debug_vis_type) + colour.g = max(colour.g, 0.25 * enable_debug_vis_type) + colour.b = max(colour.b, 0.25 * enable_debug_vis_type) + generate_cached_draw_list( draw_list, glyph_pack[:], cached, colour ) profile_end() }