From a413afa3e5ce02eca0f32574e82a6b23ce1c2e91 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Thu, 24 Jun 2010 10:13:11 +0200 Subject: [PATCH] wordpad: Make print_preview() and preview_page_hittest() static. --- programs/wordpad/print.c | 4 ++-- programs/wordpad/wordpad.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/programs/wordpad/print.c b/programs/wordpad/print.c index 1d4e6e38bd9..231c90e891c 100644 --- a/programs/wordpad/print.c +++ b/programs/wordpad/print.c @@ -891,7 +891,7 @@ static void update_preview_buttons(HWND hMainWnd) EnableWindow(GetDlgItem(hReBar, ID_PREVIEW_ZOOMOUT), preview.zoomlevel > 0); } -LRESULT print_preview(HWND hwndPreview) +static LRESULT print_preview(HWND hwndPreview) { HDC hdc; RECT window, background; @@ -1039,7 +1039,7 @@ static void toggle_num_pages(HWND hMainWnd) /* Returns the page shown that the point is in (1 or 2) or 0 if the point * isn't inside either page */ -int preview_page_hittest(POINT pt) +static int preview_page_hittest(POINT pt) { RECT rc; rc.left = preview.spacing.cx; diff --git a/programs/wordpad/wordpad.h b/programs/wordpad/wordpad.h index c250cc15c36..c3c5bc089ba 100644 --- a/programs/wordpad/wordpad.h +++ b/programs/wordpad/wordpad.h @@ -247,7 +247,6 @@ LRESULT preview_command(HWND, WPARAM); void init_preview(HWND, LPWSTR); void close_preview(HWND); BOOL preview_isactive(void); -LRESULT print_preview(HWND); void get_default_printer_opts(void); void registry_set_pagemargins(HKEY); void registry_read_pagemargins(HKEY);