enable DirectX mode for Japanese IME in Windows SDL1 builds (no menu etc at this time)

This commit is contained in:
Wengier
2021-06-19 18:06:19 -04:00
parent 98cdefa38a
commit e75286a1ac
6 changed files with 21 additions and 4 deletions

View File

@@ -502,6 +502,8 @@
<ClCompile Include="..\..\src\video\windib\SDL_dibvideo.c" />
<ClCompile Include="..\..\src\video\windib\SDL_multimon.c" />
<ClCompile Include="..\..\src\video\Windx5\SDL_dx5events.c" />
<ClCompile Include="..\..\src\video\windx5\SDL_dx5video.c" />
<ClCompile Include="..\..\src\video\windx5\SDL_dx5yuv.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\src\audio\disk\SDL_diskaudio.h" />
@@ -545,6 +547,8 @@
<ClInclude Include="..\..\src\video\windib\SDL_dibvideo.h" />
<ClInclude Include="..\..\src\video\windib\SDL_vkeys.h" />
<ClInclude Include="..\..\src\video\Windx5\SDL_dx5events_c.h" />
<ClInclude Include="..\..\src\video\windx5\SDL_dx5video.h" />
<ClInclude Include="..\..\src\video\windx5\SDL_dx5yuv_c.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">

View File

@@ -164,7 +164,7 @@ typedef unsigned int uintptr_t;
#endif
#ifndef _WIN32_WCE
// DirectDraw support DISABLED until it can be fixed to work with the async mode
//#define SDL_VIDEO_DRIVER_DDRAW 1
#define SDL_VIDEO_DRIVER_DDRAW 1
#endif
#define SDL_VIDEO_DRIVER_DUMMY 1
#define SDL_VIDEO_DRIVER_WINDIB 1

View File

@@ -1976,6 +1976,19 @@ int SDL_GetWMInfo (SDL_SysWMinfo *info)
}
}
/* Get some platform dependent input method information */
int SDL_GetIMInfo (SDL_SysIMinfo *info)
{
SDL_VideoDevice *video = current_video;
SDL_VideoDevice *this = current_video;
if ( video && video->GetIMInfo ) {
return(video->GetIMInfo(this, info));
} else {
return(0);
}
}
/* DOSBox-X Hack API: Allow host program to determine size/position of the fullscreen window */
int SDL_FSPositionX = 0,SDL_FSPositionY = 0;
int SDL_FSWidth = 0,SDL_FSHeight = 0;

View File

@@ -791,7 +791,7 @@ int SDL_RegisterApp(char *name, Uint32 style, void *hInst)
#define CS_BYTEALIGNCLIENT 0
#endif
if ( ! name && ! SDL_Appname ) {
name = "SDL_app";
name = "DOSBox-X";
SDL_Appstyle = CS_BYTEALIGNCLIENT;
SDL_Instance = hInst ? hInst : SDL_GetModuleHandle();
}

View File

@@ -1673,7 +1673,7 @@ SDL_Surface *DX5_SetVideoMode(_THIS, SDL_Surface *current,
}
}
// ShowWindow(SDL_Window, SW_SHOW);
ShowWindow(SDL_Window, SW_SHOW);
SetForegroundWindow(SDL_Window);
SDL_resizing = 0;