mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- fixed mouse scaling
This commit is contained in:
parent
a1a9770b44
commit
55018aae7e
2 changed files with 6 additions and 4 deletions
|
@ -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")
|
||||
{
|
||||
if (self < -4) self = 4;
|
||||
else if (self > 4) self = 4;
|
||||
if (self < -4*65536) self = 4 * 65536;
|
||||
else if (self > 4 * 65536) self = 4 * 65536;
|
||||
}
|
||||
|
||||
CUSTOM_CVARD(Int, in_mousescaley, 65536, CVAR_ARCHIVE | CVAR_GLOBALCONFIG, "changes the mouse sensitivity")
|
||||
{
|
||||
if (self < -4) self = 4;
|
||||
else if (self > 4) self = 4;
|
||||
if (self < -4 * 65536) self = 4 * 65536;
|
||||
else if (self > 4 * 65536) self = 4 * 65536;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -94,6 +94,7 @@ void GLInstance::Draw2D(F2DDrawer *drawer)
|
|||
EnableDepthTest(false);
|
||||
EnableMultisampling(false);
|
||||
EnableBlend(true);
|
||||
EnableAlphaTest(true);
|
||||
|
||||
auto &vertices = drawer->mVertices;
|
||||
auto &indices = drawer->mIndices;
|
||||
|
@ -193,4 +194,5 @@ void GLInstance::Draw2D(F2DDrawer *drawer)
|
|||
SetColor(1, 1, 1);
|
||||
//drawer->mIsFirstPass = false;
|
||||
twod.Clear();
|
||||
EnableMultisampling(true);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue