Mercurial > sdl-ios-xcode
comparison src/video/wincommon/SDL_sysevents.c @ 36:13ee9f4834ea
Windows CE patches contributed by Rainer Loritz
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Wed, 23 May 2001 23:35:10 +0000 |
parents | e30a8ce27c22 |
children | 994ed1d668e7 |
comparison
equal
deleted
inserted
replaced
35:d3bc792e136d | 36:13ee9f4834ea |
---|---|
494 /* Register the application class */ | 494 /* Register the application class */ |
495 class.hCursor = NULL; | 495 class.hCursor = NULL; |
496 #ifdef _WIN32_WCE | 496 #ifdef _WIN32_WCE |
497 { | 497 { |
498 /* WinCE uses the UNICODE version */ | 498 /* WinCE uses the UNICODE version */ |
499 int nLen = strlen(name); | 499 int nLen = strlen(name)+1; |
500 LPWSTR lpszW = alloca((nLen+1)*2); | 500 LPWSTR lpszW = alloca(nLen*2); |
501 MultiByteToWideChar(CP_ACP, 0, name, -1, lpszW, nLen); | 501 MultiByteToWideChar(CP_ACP, 0, name, -1, lpszW, nLen); |
502 class.hIcon = LoadImage(hInst, lpszW, IMAGE_ICON, | 502 class.hIcon = LoadImage(hInst, lpszW, IMAGE_ICON, |
503 0, 0, LR_DEFAULTCOLOR); | 503 0, 0, LR_DEFAULTCOLOR); |
504 class.lpszMenuName = lpszW; | 504 class.lpszMenuName = NULL; |
505 class.lpszClassName = lpszW; | 505 class.lpszClassName = lpszW; |
506 } | 506 } |
507 #else | 507 #else |
508 class.hIcon = LoadImage(hInst, name, IMAGE_ICON, | 508 class.hIcon = LoadImage(hInst, name, IMAGE_ICON, |
509 0, 0, LR_DEFAULTCOLOR); | 509 0, 0, LR_DEFAULTCOLOR); |