mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 00:44:21 +00:00
Implement MxDisplaySurface::VTable0x28 (#391)
* WIP * Fixes * Fixes * Fixes * Remove comments * Create native palette in LegoVideoManager * Improvements * Improvements * Improvements * Improvements * Improvements * Improvements * Improvements * Improvements * Fixes * Improvements
This commit is contained in:
committed by
GitHub
parent
5400d7476f
commit
1e43f20af5
@@ -81,6 +81,13 @@ public:
|
||||
MxLong alignedWidth = AlignToFourByte(m_bmiHeader->biWidth);
|
||||
return alignedWidth * absHeight;
|
||||
}
|
||||
inline MxLong GetAdjustedStride()
|
||||
{
|
||||
if (m_bmiHeader->biCompression == BI_RGB_TOPDOWN || m_bmiHeader->biHeight < 0)
|
||||
return GetBmiStride();
|
||||
else
|
||||
return -GetBmiStride();
|
||||
}
|
||||
|
||||
private:
|
||||
MxResult ImportColorsToPalette(RGBQUAD*, MxPalette*);
|
||||
|
||||
Reference in New Issue
Block a user