mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
Merge branch 'master' into add-mortar-layer
This commit is contained in:
commit
dad40c4989
2
3rdparty/miniaudio
vendored
2
3rdparty/miniaudio
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 347321b27c58d42567e905c715de60ad43a6cb8e
|
Subproject commit 13d161bc8d856ad61ae46b798bbeffc0f49808e8
|
||||||
@ -938,6 +938,12 @@ MxResult IsleApp::SetupWindow()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
window = MORTAR_EX_CreateWindow(&createWindowProps);
|
window = MORTAR_EX_CreateWindow(&createWindowProps);
|
||||||
|
|
||||||
|
#ifdef __EMSCRIPTEN__
|
||||||
|
// Force correct window size since SDL3 may have picked up CSS dimensions
|
||||||
|
MORTAR_SetWindowSize(window, g_targetWidth, g_targetHeight);
|
||||||
|
#endif
|
||||||
|
|
||||||
MORTAR_EXT_SetWindowProperty(window, MORTAR_WINDOW_PROPERTY_USER, &m_videoParam);
|
MORTAR_EXT_SetWindowProperty(window, MORTAR_WINDOW_PROPERTY_USER, &m_videoParam);
|
||||||
|
|
||||||
if (m_exclusiveFullScreen && m_fullScreen) {
|
if (m_exclusiveFullScreen && m_fullScreen) {
|
||||||
|
|||||||
@ -64,6 +64,7 @@ bool TextureLoader::PatchTexture(LegoTextureInfo* p_textureInfo)
|
|||||||
if (details->bits_per_pixel == 8) {
|
if (details->bits_per_pixel == 8) {
|
||||||
MORTAR_Palette* sdlPalette = MORTAR_GetSurfacePalette(surface);
|
MORTAR_Palette* sdlPalette = MORTAR_GetSurfacePalette(surface);
|
||||||
if (!sdlPalette) {
|
if (!sdlPalette) {
|
||||||
|
p_textureInfo->m_surface->Unlock(desc.lpSurface);
|
||||||
MORTAR_DestroySurface(surface);
|
MORTAR_DestroySurface(surface);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -78,6 +79,7 @@ bool TextureLoader::PatchTexture(LegoTextureInfo* p_textureInfo)
|
|||||||
|
|
||||||
LPDIRECTDRAWPALETTE ddPalette = nullptr;
|
LPDIRECTDRAWPALETTE ddPalette = nullptr;
|
||||||
if (pDirectDraw->CreatePalette(DDPCAPS_8BIT | DDPCAPS_ALLOW256, entries, &ddPalette, NULL) != DD_OK) {
|
if (pDirectDraw->CreatePalette(DDPCAPS_8BIT | DDPCAPS_ALLOW256, entries, &ddPalette, NULL) != DD_OK) {
|
||||||
|
p_textureInfo->m_surface->Unlock(desc.lpSurface);
|
||||||
MORTAR_DestroySurface(surface);
|
MORTAR_DestroySurface(surface);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user