summaryrefslogtreecommitdiff
path: root/source/gl_draw.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-05-18 14:37:21 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-05-18 14:37:21 +0000
commitcb43ed08c3cf6410fe4ce22dac3d07952db92893 (patch)
tree0b2b2790941743db47913cdf06b819c36b89e161 /source/gl_draw.c
parent179f701f7aec100ac1228fc02778fc4af47b75f0 (diff)
Accept `all' as special argument to `delstuffcmd' command.
Cleaned up Cvar_Get and fixed semantic bug. Accept `background keyword in menu scripts. Renamed `gl_fastsky' to `gl_drawsky'. If at least one of the sky env maps fails lo load, disable entire sky drawing. Reworked loading screen. Fixed Com_Quit argument string handling. Catch more signals on *nix. Updated server docs.
Diffstat (limited to 'source/gl_draw.c')
-rw-r--r--source/gl_draw.c16
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 ) {