mirror of https://github.com/FreeRDP/FreeRDP
remove unused pixmap
This commit is contained in:
parent
7a51d0300a
commit
0790c22683
|
@ -371,7 +371,6 @@ xfWindow* xf_CreateWindow(xfInfo* xfi, rdpWindow* wnd, int x, int y, int width,
|
|||
|
||||
memset(&gcv, 0, sizeof(gcv));
|
||||
window->gc = XCreateGC(xfi->display, window->handle, GCGraphicsExposures, &gcv);
|
||||
window->surface = XCreatePixmap(xfi->display, window->handle, window->width, window->height, xfi->depth);
|
||||
|
||||
xf_MoveWindow(xfi, window, x, y, width, height);
|
||||
|
||||
|
@ -469,8 +468,6 @@ void xf_MoveWindow(xfInfo* xfi, xfWindow* window, int x, int y, int width, int h
|
|||
|
||||
if (resize)
|
||||
{
|
||||
XFreePixmap(xfi->display, window->surface);
|
||||
window->surface = XCreatePixmap(xfi->display, window->handle, width, height, xfi->depth);
|
||||
xf_UpdateWindowArea(xfi, window, 0, 0, width, height);
|
||||
}
|
||||
}
|
||||
|
@ -632,9 +629,6 @@ void xf_DestroyWindow(xfInfo* xfi, xfWindow* window)
|
|||
if (window->gc)
|
||||
XFreeGC(xfi->display, window->gc);
|
||||
|
||||
if (window->surface)
|
||||
XFreePixmap(xfi->display, window->surface);
|
||||
|
||||
if (window->handle)
|
||||
{
|
||||
XUnmapWindow(xfi->display, window->handle);
|
||||
|
|
|
@ -38,7 +38,6 @@ struct xf_window
|
|||
int width;
|
||||
int height;
|
||||
Window handle;
|
||||
Pixmap surface;
|
||||
boolean fullscreen;
|
||||
boolean decorations;
|
||||
rdpWindow* window;
|
||||
|
|
Loading…
Reference in New Issue