summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_control.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-05-08 14:22:06 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-05-08 14:22:06 +0300
commit447e5fbb0fc7062b6749afe84252e2978ee57094 (patch)
tree4d21b130a47ce39e443da38075f1b5231422050f /plugins/NewStory/src/history_control.cpp
parent265d46dea7c95dfb1bf78cdba7299fd39767abd0 (diff)
NewStory to use common icons for files & URLs
Diffstat (limited to 'plugins/NewStory/src/history_control.cpp')
-rw-r--r--plugins/NewStory/src/history_control.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp
index f19f4565db..36ecde6e4a 100644
--- a/plugins/NewStory/src/history_control.cpp
+++ b/plugins/NewStory/src/history_control.cpp
@@ -385,7 +385,7 @@ struct NewstoryListData : public MZeroedObject
SIZE sz;
sz.cx = width - 6;
HFONT hfnt = (HFONT)SelectObject(hdc, g_fontTable[fontid].hfnt);
- MTextMeasure(hdc, &sz, (HANDLE)item->data);
+ MTextMeasure(hdc, &sz, item->data);
SelectObject(hdc, hfnt);
int height = sz.cy + 5;
@@ -403,7 +403,7 @@ struct NewstoryListData : public MZeroedObject
pos.x = 3;
pos.y = top + 2;
hfnt = (HFONT)SelectObject(hdc, g_fontTable[fontid].hfnt);
- MTextDisplay(hdc, pos, sz, (HANDLE)item->data);
+ MTextDisplay(hdc, pos, sz, item->data);
SelectObject(hdc, hfnt);
DeleteObject(hbr);
@@ -752,8 +752,7 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
RECT rc2;
SetRect(&rc2, 0, top, width, height);
- HBRUSH hbr;
- hbr = CreateSolidBrush(g_colorTable[COLOR_BACK].cl);
+ HBRUSH hbr = CreateSolidBrush(g_colorTable[COLOR_BACK].cl);
FillRect(hdc, &rc2, hbr);
DeleteObject(hbr);
}