Make Team Arena UI aspect correct in widescreen
This commit is contained in:
1 parent
d9c2e91919
commit
21eeaee9c8
2 files changed
+25
-21
No files matched your search
+1
-9
@@ -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 ) {
|
||||
|
||||
Reference in new issue
Block a user