mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
Winlayer keyboard input fix for OSD buffer issues and removed blending in drawrooms.
git-svn-id: https://svn.eduke32.com/eduke32@475 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
c21558f2a3
commit
d7832a7d4f
2 changed files with 4 additions and 2 deletions
|
@ -1681,7 +1681,7 @@ void drawpoly (double *dpx, double *dpy, long n, long method)
|
|||
}
|
||||
|
||||
if ((!(method&3)) && (!fullbrightdrawingpass)) {
|
||||
//bglDisable(GL_BLEND);
|
||||
bglDisable(GL_BLEND);
|
||||
if (!peelcompiling)
|
||||
bglDisable(GL_ALPHA_TEST);
|
||||
} else {
|
||||
|
|
|
@ -651,6 +651,7 @@ unsigned char bgetchar(void)
|
|||
if (keyasciififoplc == keyasciififoend) return 0;
|
||||
c = keyasciififo[keyasciififoplc];
|
||||
keyasciififoplc = ((keyasciififoplc+1)&(KEYFIFOSIZ-1));
|
||||
//OSD_Printf("bgetchar %d, %d-%d\n",c,keyasciififoplc,keyasciififoend);
|
||||
return c;
|
||||
}
|
||||
|
||||
|
@ -3624,9 +3625,10 @@ static LRESULT CALLBACK WndProcCallback(HWND hWnd, UINT uMsg, WPARAM wParam, LPA
|
|||
|
||||
case WM_CHAR:
|
||||
if (((keyasciififoend+1)&(KEYFIFOSIZ-1)) == keyasciififoplc) return 0;
|
||||
if ((keyasciififoend - keyasciififoplc) > 0) return 0;
|
||||
keyasciififo[keyasciififoend] = (unsigned char)wParam;
|
||||
keyasciififoend = ((keyasciififoend+1)&(KEYFIFOSIZ-1));
|
||||
//OSD_Printf("Char %d, %d-%d\n",wParam,keyasciififoplc,keyasciififoend);
|
||||
//OSD_Printf("WM_CHAR %d, %d-%d\n",wParam,keyasciififoplc,keyasciififoend);
|
||||
return 0;
|
||||
|
||||
case WM_HOTKEY:
|
||||
|
|
Loading…
Reference in a new issue