Make wxDisplay::GetDepth() specific to each display with GTK
This commit is contained in:
parent
6857dc8e63
commit
f587ef7c88
1 changed files with 1 additions and 2 deletions
|
|
@ -327,8 +327,7 @@ wxRect wxDisplayImplGTK::GetClientArea() const
|
|||
|
||||
int wxDisplayImplGTK::GetDepth() const
|
||||
{
|
||||
// TODO: How to get the depth of the specific display?
|
||||
return gdk_visual_get_depth(gdk_window_get_visual(wxGetTopLevelGDK()));
|
||||
return gdk_visual_get_depth(gdk_screen_get_system_visual(m_screen));
|
||||
}
|
||||
|
||||
#if GTK_CHECK_VERSION(3,10,0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue