Mercurial > sdl-ios-xcode
diff src/video/win32/SDL_win32window.c @ 2728:2768bd7281e0
Fixed Visual Studio compilation problems
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 26 Aug 2008 07:34:49 +0000 |
parents | f23ebf1ddac4 |
children | 73b9f5fc6690 |
line wrap: on
line diff
--- a/src/video/win32/SDL_win32window.c Tue Aug 26 07:34:23 2008 +0000 +++ b/src/video/win32/SDL_win32window.c Tue Aug 26 07:34:49 2008 +0000 @@ -151,7 +151,7 @@ SDL_VideoData *videodata = (SDL_VideoData *) _this->driverdata; RAWINPUTDEVICE Rid; AXIS TabX, TabY; - LOGCONTEXT lc; + LOGCONTEXTA lc; HWND hwnd; HWND top; RECT rect; @@ -206,15 +206,16 @@ } /* we're configuring the tablet data. See Wintab reference for more info */ - if (videodata->wintabDLL && videodata->WTInfo(WTI_DEFSYSCTX, 0, &lc) != 0) { + if (videodata->wintabDLL + && videodata->WTInfoA(WTI_DEFSYSCTX, 0, &lc) != 0) { lc.lcPktData = PACKETDATA; lc.lcPktMode = PACKETMODE; lc.lcOptions |= CXO_MESSAGES; lc.lcOptions |= CXO_SYSTEM; lc.lcMoveMask = PACKETDATA; lc.lcBtnDnMask = lc.lcBtnUpMask = PACKETDATA; - videodata->WTInfo(WTI_DEVICES, DVC_X, &TabX); - videodata->WTInfo(WTI_DEVICES, DVC_Y, &TabY); + videodata->WTInfoA(WTI_DEVICES, DVC_X, &TabX); + videodata->WTInfoA(WTI_DEVICES, DVC_Y, &TabY); lc.lcInOrgX = 0; lc.lcInOrgY = 0; lc.lcInExtX = TabX.axMax; @@ -235,7 +236,7 @@ } g_hCtx = tmp_hctx; } - g_hCtx[window->id] = videodata->WTOpen(hwnd, &lc, TRUE); + g_hCtx[window->id] = videodata->WTOpenA(hwnd, &lc, TRUE); } /* we're telling the window, we want it to report raw input events from mice */