formatting
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
IoIxD 2026-07-24 20:51:17 -07:00
commit 7c2ab989fa
3 changed files with 39 additions and 38 deletions

View file

@ -168,7 +168,8 @@ static LRESULT CALLBACK wndproc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp) {
MwLLDispatch(u->ll, up, &p); MwLLDispatch(u->ll, up, &p);
break; break;
} }
case WM_DROPFILES: { case WM_DROPFILES:
{
HDROP hDrop = (HDROP)wp; HDROP hDrop = (HDROP)wp;
UINT count; UINT count;
UINT i, n; UINT i, n;

View file

@ -147,6 +147,7 @@ static void llclosehandler(MwLL handle, void* data) {
static void llmovehandler(MwLL handle, void* data) { static void llmovehandler(MwLL handle, void* data) {
MwWidget h = (MwWidget)handle->common.user; MwWidget h = (MwWidget)handle->common.user;
MwPoint* p = data; MwPoint* p = data;
h->mouse_point.x = p->x; h->mouse_point.x = p->x;
h->mouse_point.y = p->y; h->mouse_point.y = p->y;
@ -194,14 +195,12 @@ static void llclipboardhandler(MwLL handle, void* data) {
static void lldraganddrophandler(MwLL handle, void* data) { static void lldraganddrophandler(MwLL handle, void* data) {
MwWidget h = (MwWidget)handle->common.user; MwWidget h = (MwWidget)handle->common.user;
const char * p = data; const char* p = data;
if(MwGetInteger(h, MwNdisabled) == 1) return; if(MwGetInteger(h, MwNdisabled) == 1) return;
printf("%s\n",p);
MwDispatchUserHandler(h, MwNdragAndDropHandler, data); MwDispatchUserHandler(h, MwNdragAndDropHandler, data);
} }
/* if both of them are true /* if both of them are true
* 1. widget class is not NULL * 1. widget class is not NULL
* 2. parent is NULL * 2. parent is NULL
@ -573,6 +572,7 @@ int MwStep(MwWidget handle) {
MwFreeWidget(handle); MwFreeWidget(handle);
return 1; return 1;
} }
return 0; return 0;
} }