diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-10 19:12:33 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-10 19:12:33 +0000 |
commit | 7334ecff1581f0294e6fa7f594f828f85d45abb5 (patch) | |
tree | 5d16997f326a1d6ad0e3921c5ce9623817d55f9a /plugins/Clist_modern/modern_skinopt.cpp | |
parent | 9242a80a84fa5c96dbadec9594177875aeeec1ac (diff) |
- fix for View mode frame;
- many unneeded spaces removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@893 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/modern_skinopt.cpp')
-rw-r--r-- | plugins/Clist_modern/modern_skinopt.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/Clist_modern/modern_skinopt.cpp b/plugins/Clist_modern/modern_skinopt.cpp index bfd739edea..1ffb72804c 100644 --- a/plugins/Clist_modern/modern_skinopt.cpp +++ b/plugins/Clist_modern/modern_skinopt.cpp @@ -142,7 +142,7 @@ INT_PTR CALLBACK DlgSkinOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara sd = ( SkinListData* )( tvi.lParam );
}
if ( !sd ) return 0;
- if ( sd->File && !_tcschr( sd->File, _T('%')) )
+ if ( sd->File && !_tcschr( sd->File, _T('%')))
{
GetPrivateProfileString( _T( "Skin_Description_Section" ), _T( "Author" ), TranslateT( "( unknown )" ), Author, SIZEOF( Author ), sd->File );
GetPrivateProfileString( _T( "Skin_Description_Section" ), _T( "URL" ), _T( "" ), URL, SIZEOF( URL ), sd->File );
@@ -291,8 +291,8 @@ INT_PTR CALLBACK DlgSkinOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara 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.x = workRect.left+(( wWidth-dWidth )>>1 );
+ imgPos.y = workRect.top+(( wHeight-dHeight )>>1 );
//DrawImage
if ( !g_CluiData.fGDIPlusFail ) //Use gdi+ engine
{
@@ -316,7 +316,7 @@ INT_PTR CALLBACK DlgSkinOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara break;
case WM_NOTIFY:
- switch ( ( ( LPNMHDR )lParam )->idFrom )
+ switch (( ( LPNMHDR )lParam )->idFrom )
{
case IDC_TREE1:
{
@@ -374,7 +374,7 @@ INT_PTR CALLBACK DlgSkinOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara }
if ( !sd ) return 0;
- if ( sd->File && !_tcschr( sd->File, _T('%')) )
+ if ( sd->File && !_tcschr( sd->File, _T('%')))
{
GetPrivateProfileString( _T( "Skin_Description_Section" ), _T( "Author" ), TranslateT( "( unknown )" ), Author, SIZEOF( Author ), sd->File );
GetPrivateProfileString( _T( "Skin_Description_Section" ), _T( "URL" ), _T( "" ), URL, SIZEOF( URL ), sd->File );
@@ -417,7 +417,7 @@ INT_PTR CALLBACK DlgSkinOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara break;
}
case 0:
- switch ( ( ( LPNMHDR )lParam )->code )
+ switch (( ( LPNMHDR )lParam )->code )
{
case PSN_APPLY:
{
@@ -537,7 +537,7 @@ HTREEITEM AddSkinToList( HWND hwndDlg, TCHAR * path, TCHAR* file ) _sntprintf( fullName, SIZEOF( fullName ), _T("%s\\%s"), path, file );
memmove( defskinname, file, (_tcslen( file )-4) * sizeof(TCHAR));
defskinname[_tcslen( file )+1] = _T('\0');
- if ( !file || _tcschr( file, _T('%')) )
+ if ( !file || _tcschr( file, _T('%')))
{
//sd->File = "%Default Skin%";
_sntprintf( sd->File, MAX_PATH, _T("%%Default Skin%%"));
@@ -583,7 +583,7 @@ HTREEITEM FindChild( HWND hTree, HTREEITEM Parent, TCHAR * Caption, void * data TreeView_GetItem( hTree, &tvi );
sd = ( SkinListData* )( tvi.lParam );
if ( sd )
- if ( !_tcsicmp( sd->File, ( ( SkinListData* )data )->File ))
+ if ( !_tcsicmp( sd->File, (( SkinListData* )data )->File ))
return tmp;
}
else
@@ -679,7 +679,7 @@ INT_PTR SvcActiveSkin(WPARAM wParam, LPARAM lParam) INT_PTR SvcApplySkin(WPARAM wParam, LPARAM lParam)
{
- ske_LoadSkinFromIniFile( (TCHAR *)lParam, FALSE );
+ ske_LoadSkinFromIniFile((TCHAR *)lParam, FALSE );
ske_LoadSkinFromDB( );
glOtherSkinWasLoaded = TRUE;
pcli->pfnClcBroadcast( INTM_RELOADOPTIONS, 0, 0 );
@@ -721,7 +721,7 @@ INT_PTR SvcPreviewSkin(WPARAM wParam, LPARAM lParam) TCHAR imfn[MAX_PATH] = {0};
TCHAR skinfolder[MAX_PATH] = {0};
GetPrivateProfileString( _T( "Skin_Description_Section" ), _T( "Preview" ), _T( "" ), imfn, SIZEOF( imfn ), (LPCTSTR)lParam );
- IniParser::GetSkinFolder( (LPCTSTR)lParam, skinfolder );
+ IniParser::GetSkinFolder((LPCTSTR)lParam, skinfolder );
_sntprintf( prfn, SIZEOF( prfn ), _T("%s\\%s"), skinfolder, imfn );
CallService( MS_UTILS_PATHTOABSOLUTET, ( WPARAM )prfn, ( LPARAM ) imfn );
char * imfn_ch = mir_t2a( imfn );
@@ -747,8 +747,8 @@ INT_PTR SvcPreviewSkin(WPARAM wParam, LPARAM lParam) 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.x = workRect.left+(( wWidth-dWidth )>>1 );
+ imgPos.y = workRect.top+(( wHeight-dHeight )>>1 );
//DrawImage
if ( !g_CluiData.fGDIPlusFail ) //Use gdi+ engine
{
|