Kaydet (Commit) b8127a54 authored tarafından Luboš Luňák's avatar Luboš Luňák

fix cases of using screen visual for a drawable

But I fear the assumption that there is just one visual per screen
is quite spread in the code :-/.
üst 178a9339
......@@ -1051,10 +1051,10 @@ SystemGraphicsData X11SalGraphics::GetGraphicsData() const
aRes.nSize = sizeof(aRes);
aRes.pDisplay = GetXDisplay();
aRes.hDrawable = hDrawable_;
aRes.pVisual = GetDisplay()->GetVisual( m_nScreen ).GetVisual();
aRes.pVisual = GetVisual().visual;
aRes.nScreen = m_nScreen;
aRes.nDepth = GetDisplay()->GetVisual( m_nScreen ).GetDepth();
aRes.aColormap = GetDisplay()->GetColormap( m_nScreen ).GetXColormap();
aRes.nDepth = GetBitCount();
aRes.aColormap = GetColormap().GetXColormap();
aRes.pXRenderFormat = m_pXRenderFormat;
return aRes;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment