diff options
Diffstat (limited to 'plugins/TopToolBar/src')
-rw-r--r-- | plugins/TopToolBar/src/toolbar.cpp | 6 | ||||
-rw-r--r-- | plugins/TopToolBar/src/toolbarwnd.cpp | 1 |
2 files changed, 2 insertions, 5 deletions
diff --git a/plugins/TopToolBar/src/toolbar.cpp b/plugins/TopToolBar/src/toolbar.cpp index 3d9e737351..650e2d03d4 100644 --- a/plugins/TopToolBar/src/toolbar.cpp +++ b/plugins/TopToolBar/src/toolbar.cpp @@ -207,8 +207,8 @@ int ArrangeButtons() return 0;
int nLineCount = 0;
- int i, ypos = 1, xpos = g_ctrl->nButtonSpace, nextX = 0, y = 0;
- int newheight = g_ctrl->nButtonHeight + 1, nButtonCount = 0;
+ int i, nextX = 0, y = 0;
+ int nButtonCount = 0;
for (i = 0; i < Buttons.getCount(); i++)
if (Buttons[i]->hwnd)
@@ -243,8 +243,6 @@ int ArrangeButtons() bWasButttonBefore = !b->isSep();
}
- int nFreeSpace = nBarSize - nUsedWidth;
-
for (i = iFirstButtonId; i < iLastButtonId; i++) {
TopButtonInt *b = Buttons[i];
if (b->hwnd == NULL)
diff --git a/plugins/TopToolBar/src/toolbarwnd.cpp b/plugins/TopToolBar/src/toolbarwnd.cpp index bb3cc61918..88e2442851 100644 --- a/plugins/TopToolBar/src/toolbarwnd.cpp +++ b/plugins/TopToolBar/src/toolbarwnd.cpp @@ -22,7 +22,6 @@ static void PaintToolbar(HWND hwnd) GetClientRect(hwnd, &clRect);
int yScroll = 0;
- int y = -yScroll;
HDC hdcMem = CreateCompatibleDC(hdc);
HBITMAP hBmpOsb = CreateBitmap(clRect.right, clRect.bottom, 1, GetDeviceCaps(hdc, BITSPIXEL), NULL);
|