- fixed mouse scaling

This commit is contained in:
Christoph Oelckers 2019-11-10 11:59:22 +01:00
parent a1a9770b44
commit 55018aae7e
2 changed files with 6 additions and 4 deletions

View file

@ -322,14 +322,14 @@ CUSTOM_CVARD(Float, in_mousesensitivity, DEFAULTMOUSESENSITIVITY, CVAR_ARCHIVE|C
CUSTOM_CVARD(Int, in_mousescalex, 65536, CVAR_ARCHIVE | CVAR_GLOBALCONFIG, "changes the mouse sensitivity") CUSTOM_CVARD(Int, in_mousescalex, 65536, CVAR_ARCHIVE | CVAR_GLOBALCONFIG, "changes the mouse sensitivity")
{ {
if (self < -4) self = 4; if (self < -4*65536) self = 4 * 65536;
else if (self > 4) self = 4; else if (self > 4 * 65536) self = 4 * 65536;
} }
CUSTOM_CVARD(Int, in_mousescaley, 65536, CVAR_ARCHIVE | CVAR_GLOBALCONFIG, "changes the mouse sensitivity") CUSTOM_CVARD(Int, in_mousescaley, 65536, CVAR_ARCHIVE | CVAR_GLOBALCONFIG, "changes the mouse sensitivity")
{ {
if (self < -4) self = 4; if (self < -4 * 65536) self = 4 * 65536;
else if (self > 4) self = 4; else if (self > 4 * 65536) self = 4 * 65536;
} }

View file

@ -94,6 +94,7 @@ void GLInstance::Draw2D(F2DDrawer *drawer)
EnableDepthTest(false); EnableDepthTest(false);
EnableMultisampling(false); EnableMultisampling(false);
EnableBlend(true); EnableBlend(true);
EnableAlphaTest(true);
auto &vertices = drawer->mVertices; auto &vertices = drawer->mVertices;
auto &indices = drawer->mIndices; auto &indices = drawer->mIndices;
@ -193,4 +194,5 @@ void GLInstance::Draw2D(F2DDrawer *drawer)
SetColor(1, 1, 1); SetColor(1, 1, 1);
//drawer->mIsFirstPass = false; //drawer->mIsFirstPass = false;
twod.Clear(); twod.Clear();
EnableMultisampling(true);
} }