fix some stuff

This commit is contained in:
NishiOwO
2025-12-10 11:15:52 +09:00
parent 9a4c74ad93
commit 0c787264c6
3 changed files with 10 additions and 11 deletions

View File

@@ -31,7 +31,7 @@ typedef uint16_t MwU16;
typedef int8_t MwI8;
typedef uint8_t MwU8;
#define OTHER_TYPES_DEFINED
#define MW_OTHER_TYPES_DEFINED
#elif __GNUC__ > 2
typedef long long MwI64;
typedef unsigned long long MwU64;
@@ -48,18 +48,18 @@ typedef unsigned __int16 MwU16;
typedef __int8 MwI8;
typedef unsigned __int8 MwU8;
#define OTHER_TYPES_DEFINED
#define MW_OTHER_TYPES_DEFINED
#else
/* out of hope */
typedef long MwI64;
typedef unsigned long MwU64;
#endif
#ifdef OTHER_TYPES_DEFINED
#undef OTHER_TYPES_DEFINED
#ifdef MW_OTHER_TYPES_DEFINED
#undef MW_OTHER_TYPES_DEFINED
#else
typedef int MwI32;
typedef unsigned int MwU32;
typedef int MwI32;
typedef unsigned int MwU32;
typedef short MwI16;
typedef unsigned short MwU16;

View File

@@ -1,7 +1,6 @@
#include <Mw/Milsko.h>
#include "../external/stb_ds.h"
#include "Mw/LowLevel.h"
static void lldrawhandler(MwLL handle, void* data) {
MwWidget h = (MwWidget)handle->common.user;

View File

@@ -142,7 +142,7 @@ static void draw(MwWidget handle) {
}
static void mouse_move(MwWidget handle) {
int or = MwGetInteger(handle, MwNorientation);
int or = MwGetInteger(handle, MwNorientation);
scrollbar_t* scr = handle->internal;
if(!handle->pressed) return;
@@ -170,9 +170,9 @@ static void mouse_move(MwWidget handle) {
}
static void mouse_down(MwWidget handle, void* ptr) {
int ww = MwGetInteger(handle, MwNwidth);
int wh = MwGetInteger(handle, MwNheight);
int or = MwGetInteger(handle, MwNorientation);
int ww = MwGetInteger(handle, MwNwidth);
int wh = MwGetInteger(handle, MwNheight);
int or = MwGetInteger(handle, MwNorientation);
scrollbar_t* scr = handle->internal;
MwLLMouse* m = ptr;