mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-31 06:30:52 +00:00
fix some stuff
This commit is contained in:
@@ -31,7 +31,7 @@ typedef uint16_t MwU16;
|
|||||||
typedef int8_t MwI8;
|
typedef int8_t MwI8;
|
||||||
typedef uint8_t MwU8;
|
typedef uint8_t MwU8;
|
||||||
|
|
||||||
#define OTHER_TYPES_DEFINED
|
#define MW_OTHER_TYPES_DEFINED
|
||||||
#elif __GNUC__ > 2
|
#elif __GNUC__ > 2
|
||||||
typedef long long MwI64;
|
typedef long long MwI64;
|
||||||
typedef unsigned long long MwU64;
|
typedef unsigned long long MwU64;
|
||||||
@@ -48,18 +48,18 @@ typedef unsigned __int16 MwU16;
|
|||||||
typedef __int8 MwI8;
|
typedef __int8 MwI8;
|
||||||
typedef unsigned __int8 MwU8;
|
typedef unsigned __int8 MwU8;
|
||||||
|
|
||||||
#define OTHER_TYPES_DEFINED
|
#define MW_OTHER_TYPES_DEFINED
|
||||||
#else
|
#else
|
||||||
/* out of hope */
|
/* out of hope */
|
||||||
typedef long MwI64;
|
typedef long MwI64;
|
||||||
typedef unsigned long MwU64;
|
typedef unsigned long MwU64;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef OTHER_TYPES_DEFINED
|
#ifdef MW_OTHER_TYPES_DEFINED
|
||||||
#undef OTHER_TYPES_DEFINED
|
#undef MW_OTHER_TYPES_DEFINED
|
||||||
#else
|
#else
|
||||||
typedef int MwI32;
|
typedef int MwI32;
|
||||||
typedef unsigned int MwU32;
|
typedef unsigned int MwU32;
|
||||||
|
|
||||||
typedef short MwI16;
|
typedef short MwI16;
|
||||||
typedef unsigned short MwU16;
|
typedef unsigned short MwU16;
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
#include "../external/stb_ds.h"
|
#include "../external/stb_ds.h"
|
||||||
#include "Mw/LowLevel.h"
|
|
||||||
|
|
||||||
static void lldrawhandler(MwLL handle, void* data) {
|
static void lldrawhandler(MwLL handle, void* data) {
|
||||||
MwWidget h = (MwWidget)handle->common.user;
|
MwWidget h = (MwWidget)handle->common.user;
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ static void draw(MwWidget handle) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void mouse_move(MwWidget handle) {
|
static void mouse_move(MwWidget handle) {
|
||||||
int or = MwGetInteger(handle, MwNorientation);
|
int or = MwGetInteger(handle, MwNorientation);
|
||||||
scrollbar_t* scr = handle->internal;
|
scrollbar_t* scr = handle->internal;
|
||||||
|
|
||||||
if(!handle->pressed) return;
|
if(!handle->pressed) return;
|
||||||
@@ -170,9 +170,9 @@ static void mouse_move(MwWidget handle) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void mouse_down(MwWidget handle, void* ptr) {
|
static void mouse_down(MwWidget handle, void* ptr) {
|
||||||
int ww = MwGetInteger(handle, MwNwidth);
|
int ww = MwGetInteger(handle, MwNwidth);
|
||||||
int wh = MwGetInteger(handle, MwNheight);
|
int wh = MwGetInteger(handle, MwNheight);
|
||||||
int or = MwGetInteger(handle, MwNorientation);
|
int or = MwGetInteger(handle, MwNorientation);
|
||||||
scrollbar_t* scr = handle->internal;
|
scrollbar_t* scr = handle->internal;
|
||||||
MwLLMouse* m = ptr;
|
MwLLMouse* m = ptr;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user