Crosshair: terrible hack to deal with vid_conautoscale being inconsiderate

This commit is contained in:
Marco Cawthorne 2023-02-09 17:11:00 -08:00
parent ce90e2c221
commit 0bf0fd42d1
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 7 additions and 0 deletions

View File

@ -53,6 +53,13 @@ Cross_DrawSubRGBA(string strMat, vector vecSize, vector vecSrcPos, vector vecSrc
cross_pos = g_hudmins + (g_hudres / 2) + [-(vecSize[0]/2),-(vecSize[1]/2)];
cross_pos[0] = rint(cross_pos[0]);
cross_pos[1] = rint(cross_pos[1]);
/* terrible hack to deal with engine's bad autoscale positioning */
if (cvar("vid_conautoscale") > 1) {
cross_pos[0] -= 0.25f;
cross_pos[1] -= 0.25f;
}
drawsubpic(cross_pos, vecSize, strMat, vecSrcPos, vecSrcSize, vecColor, flAlpha, DRAWFLAG_NORMAL);
} else {
vector vecSrc;