X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg%2Fvg_console.h;fp=vg%2Fvg_console.h;h=558df185bae8a9086ee9531577f8c361a5ffa171;hb=fefce08c7eecf3eb66553825ba421b5b81dae5eb;hp=c10abd653fb1cb3fc23f611ddaef545c459895fd;hpb=b2ed006db6dc46c57b163f572391ac74a94f4a4f;p=fishladder.git diff --git a/vg/vg_console.h b/vg/vg_console.h index c10abd6..558df18 100644 --- a/vg/vg_console.h +++ b/vg/vg_console.h @@ -80,7 +80,7 @@ static void vg_console_draw( void ) for( int i = 0; i < vg_console.len; i ++ ) { - ui_text( &ui_global_ctx, vg_console.lines[ptr], vg_console.scale*2, 0 ); + ui_text( &ui_global_ctx, vg_console.lines[ptr], vg_console.scale ); ui_global_ctx.cursor[1] -= 8*vg_console.scale; ptr --; @@ -97,12 +97,12 @@ static void vg_console_draw( void ) { ui_fill_rect( &ui_global_ctx, ui_global_ctx.cursor, 0x77333333 ); - ui_text( &ui_global_ctx, vg_console.input, vg_console.scale*2, 0 ); + ui_text( &ui_global_ctx, vg_console.input, vg_console.scale ); 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 + 2; + 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 * 0.5f; ui_fill_rect( &ui_global_ctx, ui_global_ctx.cursor, 0x66ffffff );