X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_log.h;h=04390697f06be444833a5574651c43ef41674ab1;hb=5324992ccec2857770963843fcdb6e44ce2c1a37;hp=d30e7ba330bb827d9884a63c1acf05a53bebf477;hpb=0aea2ef68a5ed32fc940673402a1b4b67f38d4d3;p=vg.git diff --git a/vg_log.h b/vg_log.h index d30e7ba..0439069 100644 --- a/vg_log.h +++ b/vg_log.h @@ -16,9 +16,9 @@ #define KCYN "\x1B[36m" #define KWHT "\x1B[37m" -#define PRINTF_v2f( V2 ) "%.2f %.2f\n", V2[0], V2[1] -#define PRINTF_v3f( V3 ) "%.2f %.2f %.2f\n", V3[0], V3[1], V3[2] -#define PRINTF_v4f( V4 ) "%.2f %.2f %.2f %.2f\n", V4[0], V4[1], V4[2], V4[3] +#define PRINTF_v2f( V2 ) "%.4f %.4f\n", V2[0], V2[1] +#define PRINTF_v3f( V3 ) "%.4f %.4f %.4f\n", V3[0], V3[1], V3[2] +#define PRINTF_v4f( V4 ) "%.4f %.4f %.4f %.4f\n", V4[0], V4[1], V4[2], V4[3] #ifdef VG_GAME static SDL_SpinLock log_print_sl; @@ -38,10 +38,8 @@ void _vg_console_append_to_log( const char *str ) char *dest = vg_log.buffer[ vg_log.buffer_line_current ++ ]; - for( int i=0; i