X-Git-Url: https://harrygodden.com/git/?p=fishladder.git;a=blobdiff_plain;f=vg%2Fvg_console.h;fp=vg%2Fvg_console.h;h=07a90d2416813c16d693d9609aafda80c2e44c3a;hp=8b2a0cd822402977a60f4cb6200f77b051e1c53b;hb=7756287016b03ba7eb76b0a57cebe28952a4ce41;hpb=bf818249690c5ae1a1e4634714dd2e722fa35632 diff --git a/vg/vg_console.h b/vg/vg_console.h index 8b2a0cd..07a90d2 100644 --- a/vg/vg_console.h +++ b/vg/vg_console.h @@ -142,8 +142,8 @@ static void vg_console_draw( void ) int start = VG_MIN( vg_console.cursor_pos, vg_console.cursor_user ), end = VG_MAX( vg_console.cursor_pos, vg_console.cursor_user ); - ui_global_ctx.cursor[0] = (start * ui_glyph_spacing_x * vg_console.scale); - ui_global_ctx.cursor[2] = (start == end? 0.5f: (float)(end-start)) * (float)ui_glyph_spacing_x * (float)vg_console.scale; + ui_global_ctx.cursor[0] = (start * UI_GLYPH_SPACING_X * vg_console.scale); + ui_global_ctx.cursor[2] = (start == end? 0.5f: (float)(end-start)) * (float)UI_GLYPH_SPACING_X * (float)vg_console.scale; ui_fill_rect( &ui_global_ctx, ui_global_ctx.cursor, 0x66ffffff ); }