From 78ed7dd2c744d42a75f6a3d4b4fffbe35e41fa60 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 3 Jun 2005 23:27:58 +0000 Subject: [PATCH] pull the data from the right place. arch code is low-level, ThemeManager is high-level. arch should not use ThemeManager; that creates a conceptual dependency loop, which makes code reuse much harder. (should do this in Dialog, too ...) --- stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp index 7077765f9b..8691fea8d3 100644 --- a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp +++ b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp @@ -2,7 +2,6 @@ #include "LowLevelWindow_X11.h" #include "RageLog.h" #include "RageException.h" -#include "CommonMetrics.h" #include "archutils/Unix/X11Helper.h" #include @@ -106,9 +105,9 @@ CString LowLevelWindow_X11::TryVideoMode( RageDisplay::VideoModeParams p, bool & } m_bWindowIsOpen = true; - char *WindowTitle = const_cast(WINDOW_TITLE.GetValue().c_str() ); + char *szWindowTitle = const_cast( p.sWindowTitle.c_str() ); XChangeProperty( g_X11Display, X11Helper::Win, XA_WM_NAME, XA_STRING, 8, PropModeReplace, - reinterpret_cast(WindowTitle), strlen(WindowTitle) ); + reinterpret_cast(szWindowTitle), strlen(szWindowTitle) ); GLXContext ctxt = glXCreateContext(X11Helper::Dpy, xvi, NULL, True);