mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-17 22:54:07 +00:00
picture works
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@83 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/* $Id$ */
|
||||
#include <Mw/Milsko.h>
|
||||
|
||||
#include <stb_image.h>
|
||||
#include "stb_image.h"
|
||||
|
||||
static int hex(const char* txt, int len) {
|
||||
int i;
|
||||
@@ -150,7 +150,7 @@ void MwDrawText(MwWidget handle, MwPoint* point, const char* text, MwLLColor col
|
||||
|
||||
MwLLPixmap MwLoadImage(MwWidget handle, const char* path) {
|
||||
int width, height, ch;
|
||||
unsigned char* rgb = stbi_load(path, &width, &height, &ch, 3);
|
||||
unsigned char* rgb = stbi_load(path, &width, &height, &ch, 4);
|
||||
MwLLPixmap px;
|
||||
|
||||
if(rgb == NULL) return NULL;
|
||||
|
||||
Reference in New Issue
Block a user