Make Team Arena UI aspect correct in widescreen
This commit is contained in:
parent
d9c2e91919
commit
21eeaee9c8
2 changed files with 25 additions and 21 deletions
|
@ -420,18 +420,10 @@ Adjusted for resolution and screen aspect ratio
|
|||
*/
|
||||
void UI_AdjustFrom640( float *x, float *y, float *w, float *h ) {
|
||||
// expect valid pointers
|
||||
#if 0
|
||||
*x = *x * uiInfo.uiDC.scale + uiInfo.uiDC.bias;
|
||||
*y *= uiInfo.uiDC.scale;
|
||||
*w *= uiInfo.uiDC.scale;
|
||||
*h *= uiInfo.uiDC.scale;
|
||||
#endif
|
||||
|
||||
*x *= uiInfo.uiDC.xscale;
|
||||
*x = *x * uiInfo.uiDC.xscale + uiInfo.uiDC.bias;
|
||||
*y *= uiInfo.uiDC.yscale;
|
||||
*w *= uiInfo.uiDC.xscale;
|
||||
*h *= uiInfo.uiDC.yscale;
|
||||
|
||||
}
|
||||
|
||||
void UI_DrawNamedPic( float x, float y, float width, float height, const char *picname ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue