X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg%2Fvg_console.h;h=48f1f2ec985b1228400f528d7d44dcfb0c5b52bd;hb=e00ea4ccba1891970699f9b5b78ba1ebaada2974;hp=febe54af68d55186be0e7339eb09553f5c18ce88;hpb=42fc2b14afbe5a37bdd469b9bac5f642bc50ccc4;p=fishladder.git diff --git a/vg/vg_console.h b/vg/vg_console.h index febe54a..48f1f2e 100644 --- a/vg/vg_console.h +++ b/vg/vg_console.h @@ -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 * 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_global_ctx.cursor[0] = (start * ui_glyph_spacing_x * vg_console.scale)/2 + 2; + ui_global_ctx.cursor[2] = (start == end? 0.2f: (float)(end-start)) * (float)ui_glyph_spacing_x * (float)vg_console.scale * 0.5f; ui_fill_rect( &ui_global_ctx, ui_global_ctx.cursor, 0x66ffffff ); }