diff options
author | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
commit | c07901e29ed545bbb02e3bddf148fe1104b94e9f (patch) | |
tree | f1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/llui/llui.cpp | |
parent | Second Life viewer sources 1.15.0.2 (diff) | |
download | meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2 meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz |
Second Life viewer sources 1.15.1.3
Diffstat (limited to 'linden/indra/llui/llui.cpp')
-rw-r--r-- | linden/indra/llui/llui.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/linden/indra/llui/llui.cpp b/linden/indra/llui/llui.cpp index 9d689b5..a725281 100644 --- a/linden/indra/llui/llui.cpp +++ b/linden/indra/llui/llui.cpp | |||
@@ -421,6 +421,12 @@ void gl_draw_scaled_image_with_border(S32 x, S32 y, S32 border_width, S32 border | |||
421 | stop_glerror(); | 421 | stop_glerror(); |
422 | F32 border_scale = 1.f; | 422 | F32 border_scale = 1.f; |
423 | 423 | ||
424 | if (NULL == image) | ||
425 | { | ||
426 | llwarns << "image == NULL; aborting function" << llendl; | ||
427 | return; | ||
428 | } | ||
429 | |||
424 | if (border_height * 2 > height) | 430 | if (border_height * 2 > height) |
425 | { | 431 | { |
426 | border_scale = (F32)height / ((F32)border_height * 2.f); | 432 | border_scale = (F32)height / ((F32)border_height * 2.f); |
@@ -599,6 +605,12 @@ void gl_draw_rotated_image(S32 x, S32 y, F32 degrees, LLImageGL* image, const LL | |||
599 | 605 | ||
600 | void gl_draw_scaled_rotated_image(S32 x, S32 y, S32 width, S32 height, F32 degrees, LLImageGL* image, const LLColor4& color) | 606 | void gl_draw_scaled_rotated_image(S32 x, S32 y, S32 width, S32 height, F32 degrees, LLImageGL* image, const LLColor4& color) |
601 | { | 607 | { |
608 | if (NULL == image) | ||
609 | { | ||
610 | llwarns << "image == NULL; aborting function" << llendl; | ||
611 | return; | ||
612 | } | ||
613 | |||
602 | LLGLSUIDefault gls_ui; | 614 | LLGLSUIDefault gls_ui; |
603 | 615 | ||
604 | glPushMatrix(); | 616 | glPushMatrix(); |
@@ -639,6 +651,12 @@ void gl_draw_scaled_rotated_image(S32 x, S32 y, S32 width, S32 height, F32 degre | |||
639 | 651 | ||
640 | void gl_draw_scaled_image_inverted(S32 x, S32 y, S32 width, S32 height, LLImageGL* image, const LLColor4& color) | 652 | void gl_draw_scaled_image_inverted(S32 x, S32 y, S32 width, S32 height, LLImageGL* image, const LLColor4& color) |
641 | { | 653 | { |
654 | if (NULL == image) | ||
655 | { | ||
656 | llwarns << "image == NULL; aborting function" << llendl; | ||
657 | return; | ||
658 | } | ||
659 | |||
642 | LLGLSUIDefault gls_ui; | 660 | LLGLSUIDefault gls_ui; |
643 | 661 | ||
644 | glPushMatrix(); | 662 | glPushMatrix(); |