diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-01 20:48:44 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-01 20:48:44 +0000 |
commit | 45fb804e5f91f7842f87101da0a7ffd96ee8bf43 (patch) | |
tree | 288d776215c2ee499c3db86da418ac3fa8d169a6 /plugins/Clist_modern/src/modern_skinopt.cpp | |
parent | 754c5e27f878dc4a46131593e00e78e054faa995 (diff) |
resource.h reverted
git-svn-id: http://svn.miranda-ng.org/main/trunk@4279 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_skinopt.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_skinopt.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/Clist_modern/src/modern_skinopt.cpp b/plugins/Clist_modern/src/modern_skinopt.cpp index 8b8b28aea1..9409828f48 100644 --- a/plugins/Clist_modern/src/modern_skinopt.cpp +++ b/plugins/Clist_modern/src/modern_skinopt.cpp @@ -96,14 +96,14 @@ INT_PTR CALLBACK DlgSkinOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara {
switch ( msg )
{
- case WM_DESTROY:
+ case WM_DESTROY:
{
if ( hPreviewBitmap ) ske_UnloadGlyphImage( hPreviewBitmap );
break;
}
case WM_INITDIALOG:
- {
+ {
HTREEITEM it;
TranslateDialogDefault( hwndDlg );
it = FillAvailableSkinList( hwndDlg );
@@ -186,11 +186,11 @@ INT_PTR CALLBACK DlgSkinOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara if ( res != IDOK ) return 0;
}
ske_LoadSkinFromIniFile( sd->File, FALSE );
- ske_LoadSkinFromDB( );
+ ske_LoadSkinFromDB();
glOtherSkinWasLoaded = TRUE;
pcli->pfnClcBroadcast( INTM_RELOADOPTIONS, 0, 0 );
Sync( CLUIFrames_OnClistResize_mod, 0, 0 );
- ske_RedrawCompleteWindow( );
+ ske_RedrawCompleteWindow( );
Sync( CLUIFrames_OnClistResize_mod, 0, 0 );
{
HWND hwnd = pcli->hwndContactList;
@@ -234,7 +234,7 @@ INT_PTR CALLBACK DlgSkinOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara holdbmp = ( HBITMAP )SelectObject( memDC, hbmp );
workRect = dis->rcItem;
OffsetRect( &workRect, -workRect.left, -workRect.top );
- FillRect( memDC, &workRect, hbr );
+ FillRect( memDC, &workRect, hbr );
DeleteObject( hbr );
if ( hPreviewBitmap )
{
@@ -251,17 +251,17 @@ INT_PTR CALLBACK DlgSkinOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara if ( wWidth < bmp.bmWidth ) xScale = ( float )wWidth/bmp.bmWidth;
if ( wHeight < bmp.bmHeight ) yScale = ( float )wHeight/bmp.bmHeight;
xScale = min( xScale, yScale );
- yScale = xScale;
+ yScale = xScale;
dWidth = ( int )( xScale*bmp.bmWidth );
dHeight = ( int )( yScale*bmp.bmHeight );
//CalcPosition
imgPos.x = workRect.left+(( wWidth-dWidth )>>1 );
- imgPos.y = workRect.top+(( wHeight-dHeight )>>1 );
+ imgPos.y = workRect.top+(( wHeight-dHeight )>>1 );
//DrawImage
if ( !g_CluiData.fGDIPlusFail ) //Use gdi+ engine
{
DrawAvatarImageWithGDIp( memDC, imgPos.x, imgPos.y, dWidth, dHeight, hPreviewBitmap, 0, 0, bmp.bmWidth, bmp.bmHeight, 8, 255 );
- }
+ }
else
{
BLENDFUNCTION bf = {AC_SRC_OVER, 0, 255, AC_SRC_ALPHA };
|