Created
January 10, 2017 06:49
-
-
Save ObserverHerb/55f953c4bbb767c8f38f85f35a951377 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- library/forms/gtk/src/lf_popover.orig.cpp 2017-01-09 11:05:22.343877181 -0500 | |
+++ library/forms/gtk/src/lf_popover.cpp 2017-01-09 11:09:04.029863968 -0500 | |
@@ -380,7 +380,7 @@ | |
if (_style == mforms::PopoverStyleTooltip) | |
{ | |
Glib::RefPtr<Gdk::Window> wnd = this->get_window(); | |
- if (wnd != 0) | |
+ if (wnd) | |
{ | |
int xx; | |
int yy; | |
@@ -396,7 +396,7 @@ | |
{ | |
Gdk::ModifierType mask; | |
Glib::RefPtr<Gdk::Display> dsp = Gdk::Display::get_default(); | |
- if (dsp != 0) | |
+ if (dsp) | |
dsp->get_pointer(x, y, mask); | |
} | |
--- library/forms/gtk/src/lf_popup.orig.cpp 2017-01-09 11:58:06.054688609 -0500 | |
+++ library/forms/gtk/src/lf_popup.cpp 2017-01-09 11:58:32.939687007 -0500 | |
@@ -81,7 +81,8 @@ | |
{ | |
d("\n"); | |
Glib::RefPtr<Gdk::Colormap> colormap = screen->get_rgba_colormap(); | |
- _have_rgba = colormap; | |
+ if (colormap) | |
+ _have_rgba = true; | |
if (!_have_rgba) | |
colormap = screen->get_rgb_colormap(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment