mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
enable DirectX mode for Japanese IME in Windows SDL1 builds (no menu etc at this time)
This commit is contained in:
@@ -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">
|
||||
|
@@ -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
|
||||
|
@@ -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;
|
||||
|
@@ -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();
|
||||
}
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user