mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-16 04:02:15 +00:00
Fix build with specific option combination.
With some option combination the code to be compiled has not been updated with regards to the changes in conky::rec, i.e get_height() becomes height() and get_width() becomes width().
This commit is contained in:
parent
ccbac0a899
commit
682db0c4df
@ -77,7 +77,7 @@ bool use_xpmdb_setting::set_up(lua::state &l) {
|
||||
if (!out_to_x.get(l)) return false;
|
||||
|
||||
window.back_buffer =
|
||||
XCreatePixmap(display, window.window, window.geometry.get_width() + 1, window.geometry.get_height() + 1,
|
||||
XCreatePixmap(display, window.window, window.geometry.width() + 1, window.geometry.height() + 1,
|
||||
DefaultDepth(display, screen));
|
||||
if (window.back_buffer != None) {
|
||||
window.drawable = window.back_buffer;
|
||||
|
@ -1219,10 +1219,10 @@ void xdbe_swap_buffers() {
|
||||
void xpmdb_swap_buffers(void) {
|
||||
if (use_xpmdb.get(*state)) {
|
||||
XCopyArea(display, window.back_buffer, window.window, window.gc, 0, 0,
|
||||
window.geometry.get_width(), window.geometry.get_height(), 0, 0);
|
||||
window.geometry.width(), window.geometry.height(), 0, 0);
|
||||
XSetForeground(display, window.gc, 0);
|
||||
XFillRectangle(display, window.drawable, window.gc, 0, 0, window.geometry.get_width(),
|
||||
window.geometry.get_height());
|
||||
XFillRectangle(display, window.drawable, window.gc, 0, 0, window.geometry.width(),
|
||||
window.geometry.height());
|
||||
XFlush(display);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user