diff --git a/src/backend/x11.c b/src/backend/x11.c index e2cbd46..bb63e50 100644 --- a/src/backend/x11.c +++ b/src/backend/x11.c @@ -406,7 +406,10 @@ void MwLLNextEvent(MwLL handle) { MwLLGetXYWH(handle, &x, &y, &w, &h); MwLLDispatch(handle, draw, NULL); - if(handle->copy_buffer) XCopyArea(handle->display, handle->pixmap, handle->window, handle->gc, 0, 0, w, h, 0, 0); + if(handle->copy_buffer){ + XCopyArea(handle->display, handle->pixmap, handle->window, handle->gc, 0, 0, w, h, 0, 0); + XSetWindowBackgroundPixmap(handle->display, handle->window, handle->pixmap); + } } } } diff --git a/src/draw.c b/src/draw.c index 43048c0..79aad5b 100644 --- a/src/draw.c +++ b/src/draw.c @@ -202,7 +202,7 @@ void MwDrawTriangle(MwWidget handle, MwRect* rect, MwLLColor color, int invert, MwLLColor darker = MwLightenColor(handle, color, -ColorDiff, -ColorDiff, -ColorDiff); MwLLColor lighter = MwLightenColor(handle, color, ColorDiff, ColorDiff, ColorDiff); - double deg = 30 + ((direction == MwEAST || direction == MwWEST) ? 30 : 0); + double deg = 30 * ((direction == MwEAST || direction == MwWEST) ? 2 : 1); double c = cos(deg / 180 * M_PI); double s = sin(deg / 180 * M_PI);