Merge branch 'master' into add-mortar-layer

This commit is contained in:
Christian Semmler 2026-01-31 09:55:33 -08:00 committed by GitHub
commit dad40c4989
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 1 deletions

2
3rdparty/miniaudio vendored

@ -1 +1 @@
Subproject commit 347321b27c58d42567e905c715de60ad43a6cb8e
Subproject commit 13d161bc8d856ad61ae46b798bbeffc0f49808e8

View File

@ -938,6 +938,12 @@ MxResult IsleApp::SetupWindow()
#endif
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);
if (m_exclusiveFullScreen && m_fullScreen) {

View File

@ -64,6 +64,7 @@ bool TextureLoader::PatchTexture(LegoTextureInfo* p_textureInfo)
if (details->bits_per_pixel == 8) {
MORTAR_Palette* sdlPalette = MORTAR_GetSurfacePalette(surface);
if (!sdlPalette) {
p_textureInfo->m_surface->Unlock(desc.lpSurface);
MORTAR_DestroySurface(surface);
return false;
}
@ -78,6 +79,7 @@ bool TextureLoader::PatchTexture(LegoTextureInfo* p_textureInfo)
LPDIRECTDRAWPALETTE ddPalette = nullptr;
if (pDirectDraw->CreatePalette(DDPCAPS_8BIT | DDPCAPS_ALLOW256, entries, &ddPalette, NULL) != DD_OK) {
p_textureInfo->m_surface->Unlock(desc.lpSurface);
MORTAR_DestroySurface(surface);
return false;
}