diff options
Diffstat (limited to 'source/gl_draw.c')
-rw-r--r-- | source/gl_draw.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/gl_draw.c b/source/gl_draw.c index f95f1f9..8cb1bdf 100644 --- a/source/gl_draw.c +++ b/source/gl_draw.c @@ -123,17 +123,17 @@ void Draw_SetScale( float *scale ) { draw.scale = f; } -void Draw_GetPicSize( int *w, int *h, qhandle_t hPic ) { +qboolean Draw_GetPicSize( int *w, int *h, qhandle_t hPic ) { image_t *image; image = R_ImageForHandle( hPic ); - *w = image->width; - *h = image->height; -} - -void Draw_GetFontSize( int *w, int *h, qhandle_t hFont ) { - *w = 8; - *h = 8; + if( w ) { + *w = image->width; + } + if( h ) { + *h = image->height; + } + return image->flags & if_transparent; } qhandle_t GL_RegisterFont( const char *name ) { |