From 61bc92f255fba64a001da7209b4da7dc4e407e71 Mon Sep 17 00:00:00 2001 From: rheiny Date: Sun, 11 Feb 2007 15:47:40 +0000 Subject: [PATCH] Palette configuration window is now centered. --- src/drivers/win/palette.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/drivers/win/palette.cpp b/src/drivers/win/palette.cpp index 9a0e1c21..e580e9c9 100644 --- a/src/drivers/win/palette.cpp +++ b/src/drivers/win/palette.cpp @@ -1,6 +1,7 @@ #include "common.h" #include "main.h" #include "window.h" +#include "gui.h" /** * Prompts the user for a palette file and opens that file. @@ -72,6 +73,8 @@ BOOL CALLBACK PaletteConCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa EnableWindow(GetDlgItem(hwndDlg, 201), (eoptions & EO_CPALETTE) ? 1 : 0); + CenterWindowOnScreen(hwndDlg); + break; case WM_HSCROLL: