简体   繁体   English

GUI的某些部分变黑,例如在调整大小时

[英]Parts of GUI goes black e.g. while resizing

My application uses Gtkmm and gtkglextmm. 我的应用程序使用Gtkmm和gtkglextmm。 It loads pictures form HDD and shows them using OpenGL capabilities. 它从HDD加载图片并使用OpenGL功能显示它们。 However when I (for example) resize mainwindow some parts of GUI goes black and I don't know why. 但是,当我(例如)调整主窗口的大小时,GUI的某些部分会变黑,我不知道为什么。 On Ubuntu this problem doesn't exist. 在Ubuntu上,此问题不存在。

Here is a video illustrating what I am talking about: http://youtu.be/XGNJmddh_m4 这是一段视频,阐明了我在说什么:http: //youtu.be/XGNJmddh_m4

Without seeing your code, and assuming it does nothing arcane I'd attribute this to some bug in the GTK+ port for Windows itself. 在没有看到您的代码的情况下,并假设它没有任何作用,我将其归因于Windows本身的GTK +端口中的一些错误。 I suspect the doublebuffering built into GTK+ getting tangles up with the inherent doublebuffering of the composition process (Aero), and having a set a background erasure brush in the WNDCLASSEX of the windows GTK+ creates. 我怀疑GTK +内置的双缓冲功能会与合成过程(Aero)固有的双缓冲​​功能纠缠在一起,并且在GTK +创建的Windows的WNDCLASSEX中设置了背景擦除笔刷。

I'd file this as a bug with GTK+ 我将其记录为GTK +的错误

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 C ++:在事件驱动的系统中(例如在GUI应用程序中)间接调用`delete this` - C++: indirect invocation of `delete this` in event driven system (e.g. in GUI application) C ++:执行while循环直到按下一个键,例如Esc? - C++: execute a while loop until a key is pressed e.g. Esc? 与静态库链接时,为什么要强制执行命令(例如source.cxx -lstatic)? - Why order(e.g. source.cxx -lstatic) is enforced while linking with static library? 具有大阶乘的数学(例如除法?) - Mathematics with large factorials (e.g. division?) 定义分段函数(例如多项式) - Defining a piecewise function (e.g. polynomial) 如何在保留所有基本构造函数的同时(仅)使用额外的 static 方法派生 class(来自例如 Eigen::VectorXf)? - how to derive a class (from e.g. Eigen::VectorXf) with (only) an extra static method while retaining all the base constructors? 用未显示的值(例如ID)搜索QTableView - Search QTableView with a value(e.g. ID) which is not displayed 负数字字符串(例如“ -10”)到无符号短整数 - Negative numeric string (e.g. “-10”) to unsigned short 为什么成员函数需要'&'(例如在std :: bind中)? - Why does a member function needs '&' (e.g. in std::bind)? 如何将守护进程与Web服务器连接(例如通过FastCGI)? - How to connect deamon with web server (e.g. via FastCGI)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM