Improved drawing performance. Now uses DIBSection bitmap for UpdateLayeredWindow.

This commit is contained in:
spx
2011-03-23 21:19:55 +00:00
parent a4b24d75ac
commit 0e0eb66cff
2 changed files with 64 additions and 26 deletions

View File

@ -292,9 +292,16 @@ private:
void SetWindowPositionVariables(int x, int y);
void SetWindowSizeVariables(int w, int h);
void CreateDoubleBuffer(int cx, int cy);
CConfigParser m_Parser;
Gdiplus::Bitmap* m_DoubleBuffer;
HBITMAP m_DIBSectionBuffer;
LPDWORD m_DIBSectionBufferPixels;
int m_DIBSectionBufferW;
int m_DIBSectionBufferH;
Gdiplus::Bitmap* m_Background; // The background bitmap
SIZE m_BackgroundSize;