mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-11 18:41:14 +00:00
Merge remote-tracking branch 'isle/master'
This commit is contained in:
commit
18f24d1795
@ -354,17 +354,17 @@ DWORD CConfigApp::GetConditionalDeviceRenderBitDepth() const
|
|||||||
if (GetHardwareDeviceColorModel()) {
|
if (GetHardwareDeviceColorModel()) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return m_device->m_HELDesc.dwDeviceRenderBitDepth & 0x800;
|
return m_device->m_HELDesc.dwDeviceRenderBitDepth & DDBD_8;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: CONFIG 0x004037e0
|
// FUNCTION: CONFIG 0x004037e0
|
||||||
DWORD CConfigApp::GetDeviceRenderBitStatus() const
|
DWORD CConfigApp::GetDeviceRenderBitStatus() const
|
||||||
{
|
{
|
||||||
if (GetHardwareDeviceColorModel()) {
|
if (GetHardwareDeviceColorModel()) {
|
||||||
return m_device->m_HWDesc.dwDeviceRenderBitDepth & 0x400;
|
return m_device->m_HWDesc.dwDeviceRenderBitDepth & DDBD_16;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return m_device->m_HELDesc.dwDeviceRenderBitDepth & 0x400;
|
return m_device->m_HELDesc.dwDeviceRenderBitDepth & DDBD_16;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -80,7 +80,7 @@ MxResult MxBitmap::SetSize(MxS32 p_width, MxS32 p_height, MxPalette* p_palette,
|
|||||||
done:
|
done:
|
||||||
if (ret) {
|
if (ret) {
|
||||||
if (m_info) {
|
if (m_info) {
|
||||||
delete[] m_info;
|
delete[] ((MxU8*) m_info);
|
||||||
m_info = NULL;
|
m_info = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -118,7 +118,7 @@ MxResult MxBitmap::ImportBitmapInfo(MxBITMAPINFO* p_info)
|
|||||||
done:
|
done:
|
||||||
if (result != SUCCESS) {
|
if (result != SUCCESS) {
|
||||||
if (m_info) {
|
if (m_info) {
|
||||||
delete[] m_info;
|
delete[] ((MxU8*) m_info);
|
||||||
m_info = NULL;
|
m_info = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -157,7 +157,7 @@ MxResult MxBitmap::ImportBitmap(MxBitmap* p_bitmap)
|
|||||||
done:
|
done:
|
||||||
if (result != SUCCESS) {
|
if (result != SUCCESS) {
|
||||||
if (m_info) {
|
if (m_info) {
|
||||||
delete[] m_info;
|
delete[] ((MxU8*) m_info);
|
||||||
m_info = NULL;
|
m_info = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -248,7 +248,7 @@ MxResult MxBitmap::LoadFile(SDL_IOStream* p_handle)
|
|||||||
done:
|
done:
|
||||||
if (result != SUCCESS) {
|
if (result != SUCCESS) {
|
||||||
if (m_info) {
|
if (m_info) {
|
||||||
delete[] m_info;
|
delete[] ((MxU8*) m_info);
|
||||||
m_info = NULL;
|
m_info = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user