summaryrefslogtreecommitdiff
path: root/alf/alflayout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alf/alflayout.cpp')
-rw-r--r--alf/alflayout.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/alf/alflayout.cpp b/alf/alflayout.cpp
index 8d03a6b..7251ca6 100644
--- a/alf/alflayout.cpp
+++ b/alf/alflayout.cpp
@@ -18,7 +18,7 @@ ALF_Layout_Clear(ALFLayout *layout)
static void
-ALF_UpdateFontForWidget(ALFWidgetPriv *widget, const ALFWindowFonts *fonts)
+ALF_ApplyFontForWidget(ALFWidgetPriv *widget, const ALFWindowFonts *fonts)
{
if (widget->hwnd && (widget->flags & ALF_MESSAGEFONT) == ALF_MESSAGEFONT) {
SendMessage(widget->hwnd, WM_SETFONT, (WPARAM)fonts->hMessageFont, (LPARAM)NULL);
@@ -30,12 +30,12 @@ ALF_UpdateFontForWidget(ALFWidgetPriv *widget, const ALFWindowFonts *fonts)
}
void
-ALF_Layout_UpdateFonts(ALFLayout *layout, HWND window, const ALFWindowFonts *fonts)
+ALF_Layout_ApplyFonts(ALFLayout *layout, HWND window, const ALFWindowFonts *fonts)
{
(void)window;
ALF_FOR_LIST(ALFWidgetPriv, list, &layout->widgets, i) {
- ALF_UpdateFontForWidget(i, fonts);
+ ALF_ApplyFontForWidget(i, fonts);
}
}
@@ -255,13 +255,6 @@ ALF_Layout_AddWidget(ALFLayout* layout, HWND window, const ALFWidgetLayoutParams
SetParent(w->hwnd, window);
ALF_ListInsert(layout->widgets.prev, &w->list);
-
- if (w->flags & ALF_MESSAGEFONT) {
- ALFWindowFonts fonts;
- ZeroMemory(&fonts, sizeof(fonts));
- ALF_WindowFonts(window, &fonts);
- ALF_UpdateFontForWidget(w, &fonts);
- }
}
BOOL