mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-23 04:12:39 +00:00
Make UI_DrawProportionalString handle NULL string
This makes the function consistent with UI_DrawString.
This commit is contained in:
parent
05758d52f4
commit
7ad05ccf2d
1 changed files with 4 additions and 0 deletions
|
@ -512,6 +512,10 @@ void UI_DrawProportionalString( int x, int y, const char* str, int style, vec4_t
|
|||
int width;
|
||||
float sizeScale;
|
||||
|
||||
if( !str ) {
|
||||
return;
|
||||
}
|
||||
|
||||
sizeScale = UI_ProportionalSizeScale( style );
|
||||
|
||||
switch( style & UI_FORMATMASK ) {
|
||||
|
|
Loading…
Reference in a new issue