Fixed the ugly cursor. global cursor no longer initialised, broken code in
window.cpp fixed. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
73864f4018
commit
076d2575bc
@ -577,7 +577,8 @@ bool wxApp::Initialize()
|
|||||||
|
|
||||||
wxImage::InitStandardHandlers();
|
wxImage::InitStandardHandlers();
|
||||||
|
|
||||||
g_globalCursor = wxCursor(wxCURSOR_DEFAULT);
|
// Not needed, leave it as default. (KB)
|
||||||
|
// g_globalCursor = wxCursor(wxCURSOR_DEFAULT);
|
||||||
|
|
||||||
wxModule::RegisterModules();
|
wxModule::RegisterModules();
|
||||||
if (!wxModule::InitializeModules()) return FALSE;
|
if (!wxModule::InitializeModules()) return FALSE;
|
||||||
|
@ -2069,7 +2069,7 @@ void wxWindow::OnInternalIdle()
|
|||||||
wxCursor cursor = m_cursor;
|
wxCursor cursor = m_cursor;
|
||||||
if (g_globalCursor.Ok()) cursor = g_globalCursor;
|
if (g_globalCursor.Ok()) cursor = g_globalCursor;
|
||||||
|
|
||||||
if (m_currentGdkCursor != cursor)
|
if (cursor.Ok() && m_currentGdkCursor != cursor)
|
||||||
{
|
{
|
||||||
gdk_window_set_cursor( window, cursor.GetCursor() );
|
gdk_window_set_cursor( window, cursor.GetCursor() );
|
||||||
m_currentGdkCursor = cursor;
|
m_currentGdkCursor = cursor;
|
||||||
|
@ -577,7 +577,8 @@ bool wxApp::Initialize()
|
|||||||
|
|
||||||
wxImage::InitStandardHandlers();
|
wxImage::InitStandardHandlers();
|
||||||
|
|
||||||
g_globalCursor = wxCursor(wxCURSOR_DEFAULT);
|
// Not needed, leave it as default. (KB)
|
||||||
|
// g_globalCursor = wxCursor(wxCURSOR_DEFAULT);
|
||||||
|
|
||||||
wxModule::RegisterModules();
|
wxModule::RegisterModules();
|
||||||
if (!wxModule::InitializeModules()) return FALSE;
|
if (!wxModule::InitializeModules()) return FALSE;
|
||||||
|
@ -2069,7 +2069,7 @@ void wxWindow::OnInternalIdle()
|
|||||||
wxCursor cursor = m_cursor;
|
wxCursor cursor = m_cursor;
|
||||||
if (g_globalCursor.Ok()) cursor = g_globalCursor;
|
if (g_globalCursor.Ok()) cursor = g_globalCursor;
|
||||||
|
|
||||||
if (m_currentGdkCursor != cursor)
|
if (cursor.Ok() && m_currentGdkCursor != cursor)
|
||||||
{
|
{
|
||||||
gdk_window_set_cursor( window, cursor.GetCursor() );
|
gdk_window_set_cursor( window, cursor.GetCursor() );
|
||||||
m_currentGdkCursor = cursor;
|
m_currentGdkCursor = cursor;
|
||||||
|
Loading…
Reference in New Issue
Block a user