fix some uninitialized values
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
4aaecdb962
commit
a78b7b6762
4 changed files with 9 additions and 6 deletions
|
|
@ -405,8 +405,9 @@ static MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) {
|
|||
r->x11.width = width;
|
||||
r->x11.height = height;
|
||||
|
||||
r->x11.grabbed = 0;
|
||||
r->x11.force_render = 0;
|
||||
r->x11.grabbed = 0;
|
||||
r->x11.force_render = 0;
|
||||
r->x11.dark_theme_detection = 0;
|
||||
|
||||
r->x11.colormap = DefaultColormap(r->x11.display, XDefaultScreen(r->x11.display));
|
||||
r->x11.wm_delete = XInternAtom(r->x11.display, "WM_DELETE_WINDOW", False);
|
||||
|
|
|
|||
|
|
@ -179,6 +179,9 @@ void MwDrawWidgetBack(MwWidget handle, MwRect* rect, MwLLColor color, int invert
|
|||
|
||||
MwDrawFrame(handle, rect, color, invert);
|
||||
}
|
||||
|
||||
if(rect->width <= 0 || rect->height <= 0) return;
|
||||
|
||||
col = invert ? MwLightenColor(handle, color, -8, -8, -8) : color;
|
||||
if(MwGetInteger(handle, MwNmodernLook)) {
|
||||
MwDrawRectFading(handle, rect, col);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
#include <Mw/Milsko.h>
|
||||
|
||||
#include "../../external/stb_ds.h"
|
||||
#include "Mw/TypeDefs.h"
|
||||
|
||||
static void set_xywh(MwWidget handle) {
|
||||
int height = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue