From 72d914335c9ad0e0f4a34b9f7e2901b830c499bf Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Tue, 23 Mar 2010 04:34:22 -0500 Subject: [PATCH] Cygwin/X: Left-justify website link in About box Left-justify website link in About box. This is a cosmetic fix to make the About box display correctly when Windows is configured with a non-default DPI value Signed-off-by: Yaakov Selkowitz Reviewed-by: Jon TURNEY Reviewed-by: Colin Harrison Tested-by: Colin Harrison --- hw/xwin/XWin.rc | 2 +- hw/xwin/windialogs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xwin/XWin.rc b/hw/xwin/XWin.rc index 539bd0e4d..a142f3070 100644 --- a/hw/xwin/XWin.rc +++ b/hw/xwin/XWin.rc @@ -50,7 +50,7 @@ BEGIN LTEXT BUILDERSTRING, IDC_STATIC, 36, 28, 220, 8 LTEXT "This software is licensed under the terms of the MIT/X11 License.", IDC_STATIC, 36, 48, 220, 20 CONTROL __VENDORDWEBSUPPORT__, ID_ABOUT_WEBSITE, "Button", - BS_OWNERDRAW | WS_TABSTOP, 36, 68, 68, 8 + BS_OWNERDRAW | WS_TABSTOP, 36, 68, 220, 8 DEFPUSHBUTTON "&OK", IDOK, 105, 85, 50, 15 END diff --git a/hw/xwin/windialogs.c b/hw/xwin/windialogs.c index c3a149762..bb4f447e2 100644 --- a/hw/xwin/windialogs.c +++ b/hw/xwin/windialogs.c @@ -115,7 +115,7 @@ winDrawURLWindow (LPARAM lParam) /* Draw it */ SetBkMode (draw->hDC, OPAQUE); SelectObject (draw->hDC, font); - DrawText (draw->hDC, str, strlen (str),&rect,DT_CENTER | DT_VCENTER); + DrawText (draw->hDC, str, strlen (str),&rect,DT_LEFT | DT_VCENTER); /* Delete the created font, replace it with stock font */ DeleteObject (SelectObject (draw->hDC, GetStockObject (ANSI_VAR_FONT))); }