fix warnings

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@363 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-16 10:52:25 +00:00
parent c531bf45a0
commit 913a0e0136
8 changed files with 57 additions and 3 deletions

View File

@@ -23,6 +23,10 @@ static void tick(MwWidget handle, void* user, void* call) {
int w = MwGetInteger(opengl, MwNwidth);
int h = MwGetInteger(opengl, MwNheight);
(void)handle;
(void)user;
(void)call;
MwOpenGLMakeCurrent(opengl);
glClear(GL_COLOR_BUFFER_BIT);
@@ -49,6 +53,10 @@ static void tick(MwWidget handle, void* user, void* call) {
static void mouse(MwWidget handle, void* user, void* call) {
MwLLMouse* mouse = call;
(void)handle;
(void)user;
if(mouse->button == MwLLMouseLeft) {
t[ct].points[click * 2 + 0] = mouse->point.x;
t[ct].points[click * 2 + 1] = mouse->point.y;
@@ -86,8 +94,13 @@ static void mouse(MwWidget handle, void* user, void* call) {
static void mouse_move(MwWidget handle, void* user, void* call) {
MwPoint* point = call;
(void)handle;
(void)user;
mx = point->x;
my = point->y;
if(click == 2) {
t[ct].points[2 * 2 + 0] = point->x;
t[ct].points[2 * 2 + 1] = point->y;