1031 |
ui_resize_window() |
ui_resize_window() |
1032 |
{ |
{ |
1033 |
XSizeHints *sizehints; |
XSizeHints *sizehints; |
1034 |
|
Pixmap bs; |
1035 |
|
|
1036 |
sizehints = XAllocSizeHints(); |
sizehints = XAllocSizeHints(); |
1037 |
if (sizehints) |
if (sizehints) |
1047 |
{ |
{ |
1048 |
XResizeWindow(g_display, g_wnd, g_width, g_height); |
XResizeWindow(g_display, g_wnd, g_width, g_height); |
1049 |
} |
} |
1050 |
|
|
1051 |
|
/* create new backstore pixmap */ |
1052 |
|
if (g_backstore != 0) |
1053 |
|
{ |
1054 |
|
bs = XCreatePixmap(g_display, g_wnd, g_width, g_height, g_depth); |
1055 |
|
XSetForeground(g_display, g_gc, BlackPixelOfScreen(g_screen)); |
1056 |
|
XFillRectangle(g_display, bs, g_gc, 0, 0, g_width, g_height); |
1057 |
|
XCopyArea(g_display, g_backstore, bs, g_gc, 0, 0, g_width, g_height, 0, 0); |
1058 |
|
XFreePixmap(g_display, g_backstore); |
1059 |
|
g_backstore = bs; |
1060 |
|
} |
1061 |
} |
} |
1062 |
|
|
1063 |
void |
void |