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 ...)
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
#include "LowLevelWindow_X11.h"
|
#include "LowLevelWindow_X11.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "RageException.h"
|
#include "RageException.h"
|
||||||
#include "CommonMetrics.h"
|
|
||||||
#include "archutils/Unix/X11Helper.h"
|
#include "archutils/Unix/X11Helper.h"
|
||||||
|
|
||||||
#include <stack>
|
#include <stack>
|
||||||
@@ -106,9 +105,9 @@ CString LowLevelWindow_X11::TryVideoMode( RageDisplay::VideoModeParams p, bool &
|
|||||||
}
|
}
|
||||||
m_bWindowIsOpen = true;
|
m_bWindowIsOpen = true;
|
||||||
|
|
||||||
char *WindowTitle = const_cast<char *>(WINDOW_TITLE.GetValue().c_str() );
|
char *szWindowTitle = const_cast<char *>( p.sWindowTitle.c_str() );
|
||||||
XChangeProperty( g_X11Display, X11Helper::Win, XA_WM_NAME, XA_STRING, 8, PropModeReplace,
|
XChangeProperty( g_X11Display, X11Helper::Win, XA_WM_NAME, XA_STRING, 8, PropModeReplace,
|
||||||
reinterpret_cast<unsigned char*>(WindowTitle), strlen(WindowTitle) );
|
reinterpret_cast<unsigned char*>(szWindowTitle), strlen(szWindowTitle) );
|
||||||
|
|
||||||
GLXContext ctxt = glXCreateContext(X11Helper::Dpy, xvi, NULL, True);
|
GLXContext ctxt = glXCreateContext(X11Helper::Dpy, xvi, NULL, True);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user