Fix misleading indentation in Motif code
This commit contains whitespace-only changes (including adding one extra new line) and no real ones. Closes https://github.com/wxWidgets/wxWidgets/pull/1715
This commit is contained in:
committed by
Vadim Zeitlin
parent
2d89c3fad0
commit
565034aa49
@@ -2211,26 +2211,26 @@ static void XCopyRemote(Display *src_display, Display *dest_display,
|
|||||||
pixel = cachedest[k];
|
pixel = cachedest[k];
|
||||||
goto install;
|
goto install;
|
||||||
}
|
}
|
||||||
if (all_cache)
|
if (all_cache)
|
||||||
for (k = CACHE_SIZE; k-- > cache_pos; )
|
for (k = CACHE_SIZE; k-- > cache_pos; )
|
||||||
if (cachesrc[k] == pixel) {
|
if (cachesrc[k] == pixel) {
|
||||||
pixel = cachedest[k];
|
pixel = cachedest[k];
|
||||||
goto install;
|
goto install;
|
||||||
}
|
}
|
||||||
|
|
||||||
cachesrc[cache_pos] = xcol.pixel = pixel;
|
cachesrc[cache_pos] = xcol.pixel = pixel;
|
||||||
XQueryColor(src_display, srccm, &xcol);
|
XQueryColor(src_display, srccm, &xcol);
|
||||||
if (!XAllocColor(dest_display, destcm, &xcol))
|
if (!XAllocColor(dest_display, destcm, &xcol))
|
||||||
xcol.pixel = 0;
|
xcol.pixel = 0;
|
||||||
cachedest[cache_pos] = pixel = xcol.pixel;
|
cachedest[cache_pos] = pixel = xcol.pixel;
|
||||||
|
|
||||||
if (++cache_pos >= CACHE_SIZE) {
|
if (++cache_pos >= CACHE_SIZE) {
|
||||||
cache_pos = 0;
|
cache_pos = 0;
|
||||||
all_cache = true;
|
all_cache = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
install:
|
install:
|
||||||
XPutPixel(destimage, i, j, pixel);
|
XPutPixel(destimage, i, j, pixel);
|
||||||
}
|
}
|
||||||
|
|
||||||
XPutImage(dest_display, dest, destgc, destimage, 0, 0, destx, desty, w, h);
|
XPutImage(dest_display, dest, destgc, destimage, 0, 0, destx, desty, w, h);
|
||||||
|
@@ -341,13 +341,13 @@ wxString wxTextCtrl::GetLineText(long lineNo) const
|
|||||||
for (i = 0; currentLine != lineNo && s[i]; i++ )
|
for (i = 0; currentLine != lineNo && s[i]; i++ )
|
||||||
if (s[i] == '\n')
|
if (s[i] == '\n')
|
||||||
currentLine++;
|
currentLine++;
|
||||||
// Now get the text
|
// Now get the text
|
||||||
int j;
|
int j;
|
||||||
for (j = 0; s[i] && s[i] != '\n'; i++, j++ )
|
for (j = 0; s[i] && s[i] != '\n'; i++, j++ )
|
||||||
buf += s[i];
|
buf += s[i];
|
||||||
|
|
||||||
XtFree(s);
|
XtFree(s);
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return wxEmptyString;
|
return wxEmptyString;
|
||||||
|
@@ -1230,7 +1230,8 @@ void wxWindow::DoGetClientSize(int *x, int *y) const
|
|||||||
Widget widget = (Widget) GetClientWidget();
|
Widget widget = (Widget) GetClientWidget();
|
||||||
Dimension xx, yy;
|
Dimension xx, yy;
|
||||||
XtVaGetValues(widget, XmNwidth, &xx, XmNheight, &yy, NULL);
|
XtVaGetValues(widget, XmNwidth, &xx, XmNheight, &yy, NULL);
|
||||||
if(x) *x = xx; if(y) *y = yy;
|
if(x) *x = xx;
|
||||||
|
if(y) *y = yy;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWindow::DoSetSize(int x, int y, int width, int height, int sizeFlags)
|
void wxWindow::DoSetSize(int x, int y, int width, int height, int sizeFlags)
|
||||||
|
Reference in New Issue
Block a user