mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 16:34:18 +09:00
remove unused pixmap
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user