DrawWidgetBack fix
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
This commit is contained in:
parent
fe9b08ef55
commit
19416d7451
17 changed files with 88 additions and 34 deletions
|
|
@ -887,14 +887,14 @@ static void MwLLRaiseImpl(MwLL handle) {
|
|||
}
|
||||
|
||||
static void MwLLClipImpl(MwLL handle, MwRect* rect) {
|
||||
if(rect == NULL){
|
||||
if(rect == NULL) {
|
||||
SelectClipRgn(handle->gdi.hDC, NULL);
|
||||
|
||||
if(handle->gdi.clip != NULL){
|
||||
if(handle->gdi.clip != NULL) {
|
||||
DeleteObject(handle->gdi.clip);
|
||||
handle->gdi.clip = NULL;
|
||||
}
|
||||
}else{
|
||||
} else {
|
||||
HRGN clip = CreateRectRgn(rect->x, rect->y, rect->x + rect->width, rect->y + rect->height);
|
||||
|
||||
SelectClipRgn(handle->gdi.hDC, clip);
|
||||
|
|
|
|||
|
|
@ -592,7 +592,7 @@ static void clip(MwLL handle) {
|
|||
cairo_clip(handle->wayland.front_cairo);
|
||||
}
|
||||
|
||||
if(handle->wayland.is_clipping){
|
||||
if(handle->wayland.is_clipping) {
|
||||
cairo_rectangle(handle->wayland.front_cairo, handle->wayland.clip.x, handle->wayland.clip.y, handle->wayland.clip.width, handle->wayland.clip.height);
|
||||
cairo_clip(handle->wayland.front_cairo);
|
||||
}
|
||||
|
|
@ -1603,9 +1603,9 @@ static void MwLLRaiseImpl(MwLL handle) {
|
|||
}
|
||||
|
||||
static void MwLLClipImpl(MwLL handle, MwRect* rect) {
|
||||
if(rect == NULL){
|
||||
if(rect == NULL) {
|
||||
handle->wayland.is_clipping = MwFALSE;
|
||||
}else{
|
||||
} else {
|
||||
handle->wayland.clip = *rect;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue