summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e121a72)
Fixed wxWindowX11::FindFocus so text selections work again.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14849
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
XSetForeground( xdisplay, gc, BlackPixel(xdisplay,xscreen) );
XSetForeground( xdisplay, gc, BlackPixel(xdisplay,xscreen) );
- for (int j = 0; j < image.GetHeight(); j++)
+ int width = image.GetWidth();
+ int height = image.GetHeight();
+ for (int j = 0; j < height; j++)
{
int start_x = -1;
int i;
{
int start_x = -1;
int i;
- for (i = 0; i < image.GetWidth(); i++)
+ for (i = 0; i < width; i++)
{
if ((data[index] == red) &&
(data[index+1] == green) &&
{
if ((data[index] == red) &&
(data[index+1] == green) &&
// GdkColormap *cmap = gtk_widget_get_default_colormap();
// GdkColormap *cmap = gtk_widget_get_default_colormap();
+ int width = GetWidth();
+ int height = GetHeight();
- for (int j = 0; j < GetHeight(); j++)
+ for (int j = 0; j < height; j++)
- for (int i = 0; i < GetWidth(); i++)
+ for (int i = 0; i < width; i++)
{
unsigned long pixel = XGetPixel( x_image, i, j );
if (bpp == 1)
{
unsigned long pixel = XGetPixel( x_image, i, j );
if (bpp == 1)
if (xfocus)
{
wxWindow *win = wxGetWindowFromTable( xfocus );
if (xfocus)
{
wxWindow *win = wxGetWindowFromTable( xfocus );
+ if (!win)
+ {
+ win = wxGetClientWindowFromTable( xfocus );
+ }
- XMoveResizeWindow( wxGlobalDisplay(), xwindow, x, y, width, height );
+ XMoveResizeWindow( wxGlobalDisplay(), xwindow, x, y, wxMax(1, width), wxMax(1, height) );