Use gr_ustring instead of gr_uprintf where possible
This commit is contained in:
parent
1bf3722670
commit
c3c1695ba5
|
@ -330,6 +330,7 @@ void gr_ustring(int x, int y, const char *s );
|
||||||
void gr_printf( int x, int y, const char * format, ... ) __attribute_format_printf(3, 4);
|
void gr_printf( int x, int y, const char * format, ... ) __attribute_format_printf(3, 4);
|
||||||
#define gr_printf(A1,A2,F,...) dxx_call_printf_checked(gr_printf,gr_string,(A1,A2),(F),##__VA_ARGS__)
|
#define gr_printf(A1,A2,F,...) dxx_call_printf_checked(gr_printf,gr_string,(A1,A2),(F),##__VA_ARGS__)
|
||||||
void gr_uprintf( int x, int y, const char * format, ... ) __attribute_format_printf(3, 4);
|
void gr_uprintf( int x, int y, const char * format, ... ) __attribute_format_printf(3, 4);
|
||||||
|
#define gr_uprintf(A1,A2,F,...) dxx_call_printf_checked(gr_uprintf,gr_ustring,(A1,A2),(F),##__VA_ARGS__)
|
||||||
void gr_get_string_size(const char *s, int *string_width, int *string_height, int *average_width );
|
void gr_get_string_size(const char *s, int *string_width, int *string_height, int *average_width );
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -912,7 +912,7 @@ void gr_get_string_size(const char *s, int *string_width, int *string_height, in
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void gr_uprintf( int x, int y, const char * format, ... )
|
void (gr_uprintf)( int x, int y, const char * format, ... )
|
||||||
{
|
{
|
||||||
char buffer[1000];
|
char buffer[1000];
|
||||||
va_list args;
|
va_list args;
|
||||||
|
|
Loading…
Reference in a new issue