fix some parts
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-03-08 07:06:12 +09:00
commit 0fde05fa03
4 changed files with 8 additions and 9 deletions

View file

@ -235,14 +235,14 @@ MWDECL void (*MwLLGetClipboard)(MwLL handle);
MWDECL void (*MwLLGetCursorCoord)(MwLL handle, MwPoint* point);
MWDECL void (*MwLLGetScreenSize)(MwLL handle, MwRect* rect);
/*font renderer */
MWDECL void MwFLSetup();
/* font renderer */
MWDECL void MwFLSetup(void);
#ifdef USE_FREETYPE2
MWDECL int MWFL_FT2Setup();
MWDECL int MWFL_FT2Setup(void);
#endif
#ifdef USE_STB_TRUETYPE
MWDECL int MwFL_STBTTSetup();
MWDECL int MwFL_STBTTSetup(void);
#endif
MWDECL int (*MwFLDrawText)(MwWidget handle, MwPoint* point, const char* text, int bold, int align, MwLLColor color);

View file

@ -128,7 +128,7 @@ static void ft2_MwFontFree(void* handle) {
free(ttf);
}
int MWFL_FT2Setup() {
int MWFL_FT2Setup(void) {
MwFLDrawText = ft2_MwDrawText;
MwFLTextWidth = ft2_MwTextWidth;
MwFLTextHeight = ft2_MwTextHeight;

View file

@ -1,5 +1,4 @@
#ifdef USE_STB_TRUETYPE
#include <stdlib.h>
#include <Mw/Milsko.h>
#include "../../external/stb_truetype.h"
@ -129,7 +128,7 @@ static void stbtt_MwFontFree(void* handle) {
free(ttf);
}
int MwFL_STBTTSetup() {
int MwFL_STBTTSetup(void) {
MwFLDrawText = stbtt_MwDrawText;
MwFLTextWidth = stbtt_MwTextWidth;
MwFLTextHeight = stbtt_MwTextHeight;

View file

@ -140,8 +140,8 @@ static void bitmap_MwDrawText(MwWidget handle, MwPoint* point, const char* text,
free(px);
}
typedef int (*call_t)();
void MwFLSetup() {
typedef int (*call_t)(void);
void MwFLSetup(void) {
call_t calls[] = {
#ifdef USE_FREETYPE2
MWFL_FT2Setup,