picture works
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@83 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
8ea2d4a50a
commit
13164f0ed5
11 changed files with 71 additions and 13 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue