aboutsummaryrefslogtreecommitdiff
path: root/engines/tony/window.h
diff options
context:
space:
mode:
authorPaul Gilbert2012-05-05 20:54:21 +1000
committerPaul Gilbert2012-05-05 20:54:21 +1000
commit07c1369f98009a2d9f8b49a9f68ace7354469cba (patch)
treeb119f34aa2aedb355d620b43834796cabbb5b4d5 /engines/tony/window.h
parentaa603d5a6719764e785e4bd096f16493f7ec7f6c (diff)
downloadscummvm-rg350-07c1369f98009a2d9f8b49a9f68ace7354469cba.tar.gz
scummvm-rg350-07c1369f98009a2d9f8b49a9f68ace7354469cba.tar.bz2
scummvm-rg350-07c1369f98009a2d9f8b49a9f68ace7354469cba.zip
TONY: Created dummy event loop and started work on converting RMWindow class
Diffstat (limited to 'engines/tony/window.h')
-rw-r--r--engines/tony/window.h67
1 files changed, 23 insertions, 44 deletions
diff --git a/engines/tony/window.h b/engines/tony/window.h
index 5949450e8f..2edf409ad0 100644
--- a/engines/tony/window.h
+++ b/engines/tony/window.h
@@ -81,28 +81,7 @@ private:
bool Lock(DDSURFACEDESC &ddsd);
void Unlock(DDSURFACEDESC &ddsd);
- // Inizializza DirectDraw
- void DDInit(void);
-
- // Chiude DirectDraw
- void DDClose(void);
-
- // Repaint grafico tramite DirectDraw
- void Repaint(void);
-
- // Window Proc principale che richiama la WindowProc dentro la classe
-// friend LRESULT CALLBACK GlobalWindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
-
- // Procedura di gestione messaggi
-// LRESULT WindowProc(UINT msg, WPARAM wParam, LPARAM lParam);
-
protected:
- HWND m_hWnd;
- bool m_bFullscreen;
-
- void * /*LPDIRECTDRAW*/ m_DD;
- void * /*LPDIRECTDRAWSURFACE*/ m_Primary;
- void * /*LPDIRECTDRAWSURFACE*/ m_Back;
void * /*LPDIRECTDRAWCLIPPER*/ m_MainClipper;
void * /*LPDIRECTDRAWCLIPPER*/ m_BackClipper;
@@ -117,37 +96,37 @@ protected:
uint16 *m_wThumbBuf;
void CreateBWPrecalcTable(void);
- void UpdatePixelFormat(void);
void WipeEffect(Common::Rect &rcBoundEllipse);
- public:
- RMWindow();
- ~RMWindow();
+public:
+ RMWindow();
+ ~RMWindow();
- // Inizializzazione
- void Init(/*HINSTANCE hInst*/);
- void InitDirectDraw(void);
- void Close(void);
+ // Inizializzazione
+ void Init(/*HINSTANCE hInst*/);
+ void InitDirectDraw(void);
+ void Close(void);
- // Switch tra windowed e fullscreen
- void SwitchFullscreen(bool bFull);
+ // Repaint grafico tramite DirectDraw
+ void Repaint(void);
- // Legge il prossimo frame
- void GetNewFrame(byte *lpBuf, Common::Rect *rcBoundEllipse);
+ // Switch tra windowed e fullscreen
+ void SwitchFullscreen(bool bFull) {}
- // Avverte di grabbare un thumbnail per il salvataggio
- void GrabThumbnail(uint16 *buf);
+ // Legge il prossimo frame
+ void GetNewFrame(byte *lpBuf, Common::Rect *rcBoundEllipse);
- operator HWND() { return m_hWnd; }
+ // Avverte di grabbare un thumbnail per il salvataggio
+ void GrabThumbnail(uint16 *buf);
- // Modi pixel format
- // MODE1: 1555
- // MODE2: 5515
- // MODE3: 5551
- bool ISMODE1() { return (mskRed == 0x7C00 && mskGreen == 0x3E0 && mskBlue== 0x1F); }
- bool ISMODE2() { return (mskRed == 0xF800 && mskGreen == 0x7E0 && mskBlue== 0x1F); }
- bool ISMODE3() { return (mskRed == 0xF800 && mskGreen == 0x7C0 && mskBlue== 0x3E); }
- bool ISMODE4() { return (mskBlue == 0xF800 && mskGreen == 0x7E0 && mskRed== 0x1F); }
+ // Modi pixel format
+ // MODE1: 1555
+ // MODE2: 5515
+ // MODE3: 5551
+ bool ISMODE1() { return (mskRed == 0x7C00 && mskGreen == 0x3E0 && mskBlue== 0x1F); }
+ bool ISMODE2() { return (mskRed == 0xF800 && mskGreen == 0x7E0 && mskBlue== 0x1F); }
+ bool ISMODE3() { return (mskRed == 0xF800 && mskGreen == 0x7C0 && mskBlue== 0x3E); }
+ bool ISMODE4() { return (mskBlue == 0xF800 && mskGreen == 0x7E0 && mskRed== 0x1F); }
};
} // End of namespace Tony