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

This commit is contained in:
Nishi 2026-09-27 12:42:50 +09:00
commit 8b7a11b714
8 changed files with 32 additions and 32 deletions

View file

@ -1,8 +1,8 @@
#include <Mw/Milsko.h> #include <Mw/Milsko.h>
int main() { int main() {
MwWidget window, image, image2, image3; MwWidget window, image, image2, image3;
MwLLPixmap px, px2, px3; MwPixmap px, px2, px3;
MwLibraryInit(); MwLibraryInit();

View file

@ -23,11 +23,11 @@ void MWAPI activate(MwWidget handle, void* user, void* call) {
} }
int main() { int main() {
MwWidget lb; MwWidget lb;
int len = sizeof(harvard) / sizeof(harvard[0]) - 1; int len = sizeof(harvard) / sizeof(harvard[0]) - 1;
int i; int i;
int index; int index;
MwLLPixmap px; MwPixmap px;
MwLibraryInit(); MwLibraryInit();

View file

@ -140,13 +140,13 @@ static void MWAPI menu_handler(MwWidget handle, void* user, void* call) {
} }
int main() { int main() {
int i, j; int i, j;
MwWidget f, w, b; MwWidget f, w, b;
MwLLPixmap px; MwPixmap px;
int index; int index;
MwMenu m, m2; MwMenu m, m2;
void* v; void* v;
MwRect rc; MwRect rc;
MwLibraryInit(); MwLibraryInit();
@ -383,5 +383,5 @@ int main() {
MwLoop(window); MwLoop(window);
MwLLDestroyPixmap(px); MwDestroyPixmap(px);
} }

View file

@ -11,9 +11,9 @@ static void MWAPI resize(MwWidget handle, void* user, void* client) {
} }
int main() { int main() {
MwWidget w; MwWidget w;
int i; int i;
MwLLPixmap px[6]; MwPixmap px[6];
MwLibraryInit(); MwLibraryInit();

View file

@ -10,9 +10,9 @@ static void MWAPI resize(MwWidget handle, void* user, void* client) {
} }
int main() { int main() {
MwWidget w; MwWidget w;
int i; int i;
MwLLPixmap px[6]; MwPixmap px[6];
MwLibraryInit(); MwLibraryInit();

View file

@ -21,10 +21,10 @@ void MWAPI activate(MwWidget handle, void* user, void* call) {
} }
int main() { int main() {
MwWidget tv; MwWidget tv;
MwLLPixmap px; MwPixmap px;
int i; int i;
void * p = NULL, *r; void * p = NULL, *r;
MwLibraryInit(); MwLibraryInit();

View file

@ -16,8 +16,8 @@ static void MWAPI resize(MwWidget handle, void* user, void* call) {
} }
int main() { int main() {
MwWidget w; MwWidget w;
MwLLPixmap px; MwPixmap px;
MwLibraryInit(); MwLibraryInit();

View file

@ -79,7 +79,7 @@ void MWAPI tick(MwWidget handle, void* user, void* call) {
if(render && w > 0 && h > 0) { if(render && w > 0 && h > 0) {
unsigned char* buffer = malloc(w * h * 4); unsigned char* buffer = malloc(w * h * 4);
MwLLPixmap px; MwPixmap px;
int j; int j;
glReadPixels(0, 0, w, h, GL_RGBA, GL_UNSIGNED_BYTE, buffer); glReadPixels(0, 0, w, h, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
@ -96,7 +96,7 @@ void MWAPI tick(MwWidget handle, void* user, void* call) {
MwVaApply(window, MwVaApply(window,
MwNiconPixmap, px, MwNiconPixmap, px,
NULL); NULL);
MwLLDestroyPixmap(px); MwDestroyPixmap(px);
free(buffer); free(buffer);
} }
@ -133,7 +133,7 @@ void MWAPI resize(MwWidget handle, void* user, void* call) {
} }
int main() { int main() {
MwLLColor bgcolor, fgcolor; MwColor bgcolor, fgcolor;
MwLibraryInit(); MwLibraryInit();
@ -164,6 +164,6 @@ int main() {
MwLoop(window); MwLoop(window);
MwLLFreeColor(fgcolor); MwFreeColor(fgcolor);
MwLLFreeColor(bgcolor); MwFreeColor(bgcolor);
} }