mirror of
https://github.com/encounter/SDL.git
synced 2025-12-21 10:49:12 +00:00
Converted tabs to spaces for SDL style
This commit is contained in:
@@ -607,19 +607,19 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||
break;
|
||||
|
||||
case WM_UNICHAR:
|
||||
if ( wParam == UNICODE_NOCHAR ) {
|
||||
returnCode = 1;
|
||||
break;
|
||||
}
|
||||
/* otherwise fall through to below */
|
||||
case WM_CHAR:
|
||||
{
|
||||
char text[5];
|
||||
if ( WIN_ConvertUTF32toUTF8( (UINT32)wParam, text ) ) {
|
||||
SDL_SendKeyboardText( text );
|
||||
}
|
||||
}
|
||||
returnCode = 0;
|
||||
if ( wParam == UNICODE_NOCHAR ) {
|
||||
returnCode = 1;
|
||||
break;
|
||||
}
|
||||
/* otherwise fall through to below */
|
||||
case WM_CHAR:
|
||||
{
|
||||
char text[5];
|
||||
if ( WIN_ConvertUTF32toUTF8( (UINT32)wParam, text ) ) {
|
||||
SDL_SendKeyboardText( text );
|
||||
}
|
||||
}
|
||||
returnCode = 0;
|
||||
break;
|
||||
|
||||
#ifdef WM_INPUTLANGCHANGE
|
||||
@@ -813,9 +813,9 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||
|
||||
case WM_SYSCOMMAND:
|
||||
{
|
||||
if ((wParam & 0xFFF0) == SC_KEYMENU) {
|
||||
return (0);
|
||||
}
|
||||
if ((wParam & 0xFFF0) == SC_KEYMENU) {
|
||||
return (0);
|
||||
}
|
||||
|
||||
#if defined(SC_SCREENSAVE) || defined(SC_MONITORPOWER)
|
||||
/* Don't start the screensaver or blank the monitor in fullscreen apps */
|
||||
|
||||
Reference in New Issue
Block a user