MCPcopy Create free account
hub / github.com/JACoders/OpenJK / UI_DrawHandlePic

Function UI_DrawHandlePic

code/ui/ui_atoms.cpp:337–365  ·  view source on GitHub ↗

================ UI_DrawHandlePic ================= */

Source from the content-addressed store, hash-verified

335=================
336*/
337void 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================

Callers 5

_UI_RefreshFunction · 0.70
UI_DrawEffectsFunction · 0.70
UI_DrawCrosshairFunction · 0.70
UI_OwnerDrawFunction · 0.70
UI_DrawConnectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected