Francois Gouget : wordpad: Make print_preview() and preview_page_hittest() static.

Alexandre Julliard julliard at winehq.org
Thu Jun 24 11:15:22 CDT 2010


Module: wine
Branch: master
Commit: a413afa3e5ce02eca0f32574e82a6b23ce1c2e91
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a413afa3e5ce02eca0f32574e82a6b23ce1c2e91

Author: Francois Gouget <fgouget at free.fr>
Date:   Thu Jun 24 10:13:11 2010 +0200

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 1d4e6e3..231c90e 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 c250cc1..c3c5bc0 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);




More information about the wine-cvs mailing list