From 733b3c1f1c1b714fb70c565816d052829c031ebe Mon Sep 17 00:00:00 2001 From: Nishi Date: Tue, 28 Apr 2026 15:18:09 +0900 Subject: [PATCH] stub --- configure | 2 +- src/backend/haiku.cxx | 50 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) diff --git a/configure b/configure index cab810a..c66d2e7 100755 --- a/configure +++ b/configure @@ -224,7 +224,7 @@ print(OUT " cp -rf include \$(DESTDIR)\$(PREFIX)/\n"); print(OUT "\n"); print(OUT "format:\n"); print(OUT -" clang-format --verbose -i `find tools src include examples \"(\" -name \"*.c\" -or -name \"*.h\" -or -name \"*.m\" \")\" -and -not -name \"*ttf.c\"`\n" +" clang-format --verbose -i `find tools src include examples \"(\" -name \"*.c\" -or -name \"*.cxx\" -or -name \"*.h\" -or -name \"*.m\" \")\" -and -not -name \"*ttf.c\"`\n" ); print(OUT " perltidy -b -bext=\"/\" --paren-tightness=2 `find tools pl configure -name \"*.pl\"`\n" diff --git a/src/backend/haiku.cxx b/src/backend/haiku.cxx index fb333b5..e492195 100644 --- a/src/backend/haiku.cxx +++ b/src/backend/haiku.cxx @@ -1,4 +1,54 @@ #include +MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) {} + +void MwLLDestroyImpl(MwLL handle) {} + +void MwLLPolygonImpl(MwLL handle, MwPoint* points, int points_count, MwLLColor color) {} + +void MwLLLineImpl(MwLL handle, MwPoint* points, MwLLColor color) {} + +WDECL void MwLLBeginDrawImpl(MwLL handle) {} + +WDECL void MwLLEndDrawImpl(MwLL handle) {} + +MwLLColor MwLLAllocColorImpl(MwLL handle, int r, int g, int b) {} + +void MwLLColorUpdateImpl(MwLL handle, MwLLColor c, int r, int g, int b) {} + +void MwLLFreeColorImpl(MwLLColor color) {} + +void MwLLGetXYWHImpl(MwLL handle, int* x, int* y, unsigned int* w, unsigned int* h) {} + +void MwLLSetXYImpl(MwLL handle, int x, int y) {} + +void MwLLSetWHImpl(MwLL handle, int w, int h) {} + +void MwLLSetTitleImpl(MwLL handle, const char* title) {} + +int MwLLPendingImpl(MwLL handle) {} + +void MwLLNextEventImpl(MwLL handle) {} + +MwLLPixmap MwLLCreatePixmapImpl(MwLL handle, unsigned char* data, int width, int height) {} + +void MwLLPixmapUpdateImpl(MwLLPixmap pixmap) {} + +void MwLLDestroyPixmapImpl(MwLLPixmap pixmap) {} + +void MwLLDrawPixmapImpl(MwLL handle, MwRect* rect, MwLLPixmap pixmap) {} + +void MwLLSetIconImpl(MwLL handle, MwLLPixmap pixmap) {} + +void MwLLForceRenderImpl(MwLL handle) {} + +void MwLLSetCursorImpl(MwLL handle, MwCursor* image, MwCursor* mask) {} + +void MwLLDetachImpl(MwLL handle, MwPoint* point) {} + +void MwLLShowImpl(MwLL handle, int show) {} + +void MwLLSetSizeHintsImpl(MwLL handle, int minx, int miny, int maxx, int maxy) {} + #include "call.c" CALL(Haiku);