Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 20, 2002
1 parent faf9e62 commit 4c10bca
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/video/wincommon/SDL_sysevents.c
Expand Up @@ -314,27 +314,27 @@ LONG CALLBACK WinMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
/* Figure out which button to use */
switch (msg) {
case WM_LBUTTONDOWN:
button = 1;
button = SDL_BUTTON_LEFT;
state = SDL_PRESSED;
break;
case WM_LBUTTONUP:
button = 1;
button = SDL_BUTTON_LEFT;
state = SDL_RELEASED;
break;
case WM_MBUTTONDOWN:
button = 2;
button = SDL_BUTTON_MIDDLE;
state = SDL_PRESSED;
break;
case WM_MBUTTONUP:
button = 2;
button = SDL_BUTTON_MIDDLE;
state = SDL_RELEASED;
break;
case WM_RBUTTONDOWN:
button = 3;
button = SDL_BUTTON_RIGHT;
state = SDL_PRESSED;
break;
case WM_RBUTTONUP:
button = 3;
button = SDL_BUTTON_RIGHT;
state = SDL_RELEASED;
break;
default:
Expand Down Expand Up @@ -582,12 +582,12 @@ int SDL_RegisterApp(char *name, Uint32 style, void *hInst)
/* Register the application class */
class.hCursor = NULL;
#ifdef _WIN32_WCE
{
{
/* WinCE uses the UNICODE version */
int nLen = strlen(name)+1;
SDL_Appname = malloc(nLen*2);
MultiByteToWideChar(CP_ACP, 0, name, -1, SDL_Appname, nLen);
}
}
#else
{
int nLen = strlen(name)+1;
Expand Down

0 comments on commit 4c10bca

Please sign in to comment.