================ UI_DrawHandlePic ================= */
| 335 | ================= |
| 336 | */ |
| 337 | void UI_DrawHandlePic( float x, float y, float w, float h, qhandle_t hShader ) |
| 338 | { |
| 339 | float s0; |
| 340 | float s1; |
| 341 | float t0; |
| 342 | float t1; |
| 343 | |
| 344 | if( w < 0 ) { // flip about horizontal |
| 345 | w = -w; |
| 346 | s0 = 1; |
| 347 | s1 = 0; |
| 348 | } |
| 349 | else { |
| 350 | s0 = 0; |
| 351 | s1 = 1; |
| 352 | } |
| 353 | |
| 354 | if( h < 0 ) { // flip about vertical |
| 355 | h = -h; |
| 356 | t0 = 1; |
| 357 | t1 = 0; |
| 358 | } |
| 359 | else { |
| 360 | t0 = 0; |
| 361 | t1 = 1; |
| 362 | } |
| 363 | |
| 364 | ui.R_DrawStretchPic( x, y, w, h, s0, t0, s1, t1, hShader ); |
| 365 | } |
| 366 | |
| 367 | /* |
| 368 | ================ |
no outgoing calls
no test coverage detected