mirror of
https://github.com/isledecomp/isle.git
synced 2026-02-14 16:47:37 +00:00
fix indents, and globals
This commit is contained in:
parent
5a90ca6422
commit
de24ebdfc9
@ -1,6 +1,8 @@
|
||||
|
||||
#include "mxdirectdraw.h"
|
||||
|
||||
// OFFSET: LEGO1 10100C68
|
||||
extern BOOL g_is_PALETTEINDEXED8 = 0;
|
||||
|
||||
// OFFSET: LEGO1 0x1009DA20
|
||||
void EnableResizing(HWND hwnd, BOOL flag)
|
||||
@ -598,15 +600,17 @@ BOOL MxDirectDraw::DDSetMode(int width, int height, int bpp)
|
||||
// OFFSET: LEGO1 0x1009E830
|
||||
void MxDirectDraw::Error(const char* message, int error)
|
||||
{
|
||||
if (!g_isInsideError)
|
||||
// OFFSET: LEGO1 0x10100C70
|
||||
static BOOL isInsideError = FALSE;
|
||||
if (!isInsideError)
|
||||
{
|
||||
g_isInsideError = TRUE;
|
||||
isInsideError = TRUE;
|
||||
Destroy();
|
||||
if (m_pErrorHandler)
|
||||
{
|
||||
m_pErrorHandler(message, error, m_pErrorHandlerArg);
|
||||
}
|
||||
g_isInsideError = FALSE;
|
||||
isInsideError = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
@ -914,9 +918,6 @@ void MxDirectDraw::unk1()
|
||||
byte* line;
|
||||
DDSURFACEDESC ddsd;
|
||||
|
||||
// CRAZY, I dont know what kind of code can produce such of thing
|
||||
//v8 = 2 - !m_bFlipSurfaces;
|
||||
|
||||
for (int i = 0; i < m_bFlipSurfaces ? 2 : 1; i++)
|
||||
{
|
||||
memset(&ddsd, 0, sizeof(ddsd));
|
||||
|
||||
@ -5,8 +5,7 @@
|
||||
#include <ddraw.h>
|
||||
#include <Windows.h>
|
||||
|
||||
BOOL g_is_PALETTEINDEXED8 = 0;
|
||||
BOOL g_isInsideError = FALSE;
|
||||
extern BOOL g_is_PALETTEINDEXED8;
|
||||
|
||||
//size 0x880
|
||||
class MxDirectDraw
|
||||
|
||||
Loading…
Reference in New Issue
Block a user