mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-10 18:21:14 +00:00
Fix DirectX5 build (#765)
This commit is contained in:
parent
e4690a57b8
commit
ae886612c5
@ -480,10 +480,13 @@ SDL_AppResult SDL_AppEvent(void* appstate, SDL_Event* event)
|
|||||||
case SDL_EVENT_FINGER_UP:
|
case SDL_EVENT_FINGER_UP:
|
||||||
case SDL_EVENT_FINGER_CANCELED:
|
case SDL_EVENT_FINGER_CANCELED:
|
||||||
IDirect3DRMMiniwinDevice* device = GetD3DRMMiniwinDevice();
|
IDirect3DRMMiniwinDevice* device = GetD3DRMMiniwinDevice();
|
||||||
if (device && !device->ConvertEventToRenderCoordinates(event)) {
|
if (device) {
|
||||||
SDL_Log("Failed to convert event coordinates: %s", SDL_GetError());
|
if (!device->ConvertEventToRenderCoordinates(event)) {
|
||||||
|
SDL_Log("Failed to convert event coordinates: %s", SDL_GetError());
|
||||||
|
}
|
||||||
|
|
||||||
|
device->Release();
|
||||||
}
|
}
|
||||||
device->Release();
|
|
||||||
|
|
||||||
#ifdef __EMSCRIPTEN__
|
#ifdef __EMSCRIPTEN__
|
||||||
Emscripten_ConvertEventToRenderCoordinates(event);
|
Emscripten_ConvertEventToRenderCoordinates(event);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user