@@ -498,8 +498,8 @@ class CStartMenuTarget: public IDropTarget
498498 return E_NOINTERFACE ;
499499 }
500500
501- virtual ULONG STDMETHODCALLTYPE AddRef ( void )
502- {
501+ virtual ULONG STDMETHODCALLTYPE AddRef ( void )
502+ {
503503 return InterlockedIncrement (&m_RefCount);
504504 }
505505
@@ -1345,13 +1345,11 @@ static void UpdateStartButtonPosition(const TaskbarInfo* taskBar, const WINDOWPO
13451345
13461346 // Start button on Win11 is a bit shifted to the right
13471347 // We will shift our Aero button to cover original button
1348- if (IsWin11 () && (x == info.rcMonitor .left ) && !g_epTaskbar) {
1349- if (GetStartButtonType () == START_BUTTON_AERO )
1350- x += ScaleForDpi (taskBar->taskBar , 6 );
1351- // we should also be able to shift our custom icon, as it's also incorrectly aligned to the left edge on Windows 11
1352- else if (GetStartButtonType () == START_BUTTON_CUSTOM )
1353- x += ScaleForDpi (taskBar->taskBar , GetSettingInt (L" StartButtonOffset" ));
1354- }
1348+ if (IsWin11 () && (x == info.rcMonitor .left ) && (GetStartButtonType () == START_BUTTON_AERO ) && !g_epTaskbar)
1349+ x += ScaleForDpi (taskBar->taskBar , 6 );
1350+
1351+ if (GetStartButtonType () == START_BUTTON_CUSTOM )
1352+ x += ScaleForDpi (taskBar->taskBar , GetSettingInt (L" StartButtonOffset" ));
13551353 }
13561354
13571355 RECT rcButton = { x, y, x + taskBar->startButtonSize .cx , y + taskBar->startButtonSize .cy };
@@ -2394,7 +2392,7 @@ void UpdateTaskBars( TUpdateTaskbar update )
23942392 {
23952393 if (bDefColor && GetWinVersion ()>WIN_VER_WIN7 )
23962394 {
2397- if (IsAppThemed ())
2395+ if (IsAppThemed ())
23982396 {
23992397 color=GetSystemGlassColor8 ();
24002398 color=((color&0xFF )<<16 )|(color&0xFF00 )|((color>>16 )&0xFF );
@@ -4311,7 +4309,7 @@ HBITMAP GetStartScreenIcon( int size )
43114309 }
43124310 SelectObject (hDst,bmp0);
43134311 DeleteDC (hDst);
4314-
4312+
43154313 int i=0 ;
43164314 int n=size*rc.top ;
43174315 for (;i<n;i++)
0 commit comments