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