BWAPI
Functions | Variables
trunk/bwapi/BWAPI/Source/WMode.cpp File Reference
#include "WMode.h"
#include "Resolution.h"
#include "BW/Offsets.h"
#include "BWAPI/GameImpl.h"
#include "Config.h"
#include "Recording.h"
#include "../../Debug.h"
Include dependency graph for WMode.cpp:

Functions

 BOOL (WINAPI *_GetCursorPosOld)(LPPOINT lpPoint)
 BOOL (STORMAPI *_SDrawLockSurfaceOld)(int surfacenumber
void InitializeWModeBitmap (int width, int height)
void GetBorderRect (HWND hWnd, LPRECT lpRect)
void GetBorderSize (HWND hWnd, LPSIZE lpSize)
LPARAM FixPoints (LPARAM lParam)
bool SendHotkey (BW::dlgEvent *pEvent)
void ButtonEvent (DWORD dwEvent, LPARAM lParam)
void CorrectWindowWidth (int type, SIZE *ws, RECT *rct, SIZE *border)
void CorrectWindowHeight (int type, SIZE *ws, RECT *rct, SIZE *border)
LRESULT CALLBACK WindowProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
BOOL WINAPI _GetCursorPos (LPPOINT lpPoint)
BOOL WINAPI _SetCursorPos (int X, int Y)
BOOL WINAPI _ClipCursor (const RECT *lpRect)
BOOL __stdcall _SDrawLockSurface (int surfacenumber, RECT *lpDestRect, void **lplpSurface, int *lpPitch, int arg_unused)
BOOL __stdcall _SDrawUnlockSurface (int surfacenumber, void *lpSurface, int a3, RECT *lpRect)
BOOL __stdcall _SDrawUpdatePalette (unsigned int firstentry, unsigned int numentries, PALETTEENTRY *pPalEntries, int a4)
BOOL __stdcall _SDrawRealizePalette ()
void SetWMode (int width, int height, bool state)
void SetCursorShowState (bool bShow)

Variables

WNDPROC wOriginalProc
HWND ghMainWnd
bool wmode
HDC hdcMem
void * pBits
bool gbWantUpdate = false
bool gbIsCursorHidden = true
bool gbHoldingAlt = false
bool recordingUpdated
bool switchToWMode = false
RECT windowRect = { 0, 0, 640, 480 }
int Y
RECT * lpDestRect
RECT void ** lplpSurface
RECT void intlpPitch
RECT void int int arg_unused
void * lpSurface
void int a3
void int RECT * lpRect
unsigned int numentries
unsigned int PALETTEENTRY * pPalEntries
unsigned int PALETTEENTRY int a4
BITMAPINFO256 wmodebmp
HBITMAP hwmodeBmp

Function Documentation

BOOL WINAPI _ClipCursor ( const RECT *  lpRect)

Here is the caller graph for this function:

BOOL WINAPI _GetCursorPos ( LPPOINT  lpPoint)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL __stdcall _SDrawLockSurface ( int  surfacenumber,
RECT *  lpDestRect,
void **  lplpSurface,
int lpPitch,
int  arg_unused 
)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL __stdcall _SDrawRealizePalette ( )

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL __stdcall _SDrawUnlockSurface ( int  surfacenumber,
void *  lpSurface,
int  a3,
RECT *  lpRect 
)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL __stdcall _SDrawUpdatePalette ( unsigned int  firstentry,
unsigned int  numentries,
PALETTEENTRY *  pPalEntries,
int  a4 
)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL WINAPI _SetCursorPos ( int  X,
int  Y 
)

Here is the caller graph for this function:

BOOL ( WINAPI *  _GetCursorPosOld)
BOOL ( STORMAPI *  _SDrawLockSurfaceOld)
void ButtonEvent ( DWORD  dwEvent,
LPARAM  lParam 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void CorrectWindowHeight ( int  type,
SIZE *  ws,
RECT *  rct,
SIZE *  border 
)

Here is the caller graph for this function:

void CorrectWindowWidth ( int  type,
SIZE *  ws,
RECT *  rct,
SIZE *  border 
)

Here is the caller graph for this function:

LPARAM FixPoints ( LPARAM  lParam)

Here is the caller graph for this function:

void GetBorderRect ( HWND  hWnd,
LPRECT  lpRect 
)

Here is the caller graph for this function:

void GetBorderSize ( HWND  hWnd,
LPSIZE  lpSize 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void InitializeWModeBitmap ( int  width,
int  height 
)

Here is the caller graph for this function:

bool SendHotkey ( BW::dlgEvent pEvent)

Here is the call graph for this function:

Here is the caller graph for this function:

void SetCursorShowState ( bool  bShow)

Here is the caller graph for this function:

void SetWMode ( int  width,
int  height,
bool  state 
)

Here is the call graph for this function:

Here is the caller graph for this function:

LRESULT CALLBACK WindowProc ( HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

void int a3
unsigned int PALETTEENTRY int a4
RECT void int int arg_unused
bool gbHoldingAlt = false
bool gbWantUpdate = false
HDC hdcMem
HBITMAP hwmodeBmp
RECT* lpDestRect
RECT void** lplpSurface
RECT void int* lpPitch
void int RECT* lpRect
void* lpSurface
unsigned int numentries
void* pBits
unsigned int PALETTEENTRY* pPalEntries
bool switchToWMode = false
RECT windowRect = { 0, 0, 640, 480 }
bool wmode
WNDPROC wOriginalProc
int Y
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines