X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg%2Fvg_console.h;h=48dee1a4a0fbd36d4f625fdab7c0f25dfc9da7f4;hb=499bcabb125cdf2618a6be89ccade08b007254f3;hp=0e974f83b0223e2d87f257a0cd41b7357aa81467;hpb=294ad22bc27eae2ec8a1cbea97d08a2d45b554e9;p=fishladder.git diff --git a/vg/vg_console.h b/vg/vg_console.h index 0e974f8..48dee1a 100644 --- a/vg/vg_console.h +++ b/vg/vg_console.h @@ -42,7 +42,7 @@ struct vg_console int enabled; int scale; } -vg_console = { .scale = 1 }; +vg_console = { .scale = 2 }; static int vg_console_enabled(void) { return vg_console.enabled; } @@ -102,8 +102,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 * 6 * vg_console.scale; - ui_global_ctx.cursor[2] = (start == end? 1: (end-start)) * 6 * vg_console.scale; + ui_global_ctx.cursor[0] = start * ui_glyph_spacing_x * vg_console.scale + 2; + ui_global_ctx.cursor[2] = (start == end? 0.2f: (float)(end-start)) * (float)ui_glyph_spacing_x * (float)vg_console.scale; ui_fill_rect( &ui_global_ctx, ui_global_ctx.cursor, 0x66ffffff ); }