Search
lxdream.org :: lxdream/src/util.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/util.c
changeset 502:c4ecae2b1b5e
prev495:4db4702b0778
next535:7338e020b09b
author nkeynes
date Thu Nov 08 11:54:16 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Add sh4ptr_t type, start converting bare pointer refs to it
file annotate diff log raw
1.1 --- a/src/util.c Wed Nov 07 11:45:53 2007 +0000
1.2 +++ b/src/util.c Thu Nov 08 11:54:16 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: util.c,v 1.13 2007-11-07 11:45:53 nkeynes Exp $
1.6 + * $Id: util.c,v 1.14 2007-11-08 11:54:16 nkeynes Exp $
1.7 *
1.8 * Miscellaneous utility functions.
1.9 *
1.10 @@ -34,7 +34,7 @@
1.11 #include "sh4/sh4core.h"
1.12
1.13 char *msg_levels[] = { "FATAL", "ERROR", "WARN", "INFO", "DEBUG", "TRACE" };
1.14 -int global_msg_level = EMIT_INFO;
1.15 +int global_msg_level = EMIT_WARN;
1.16
1.17 static void report_crash( int signo, siginfo_t *info, void *ptr )
1.18 {
1.19 @@ -254,7 +254,7 @@
1.20 int rowbytes = png_get_rowbytes(png_ptr, info_ptr);
1.21 int channels = png_get_channels(png_ptr, info_ptr);
1.22 frame_buffer_t buffer = g_malloc( sizeof(struct frame_buffer) + rowbytes*height );
1.23 - buffer->data = (char *)(buffer+1);
1.24 + buffer->data = (unsigned char *)(buffer+1);
1.25 buffer->width = width;
1.26 buffer->height = height;
1.27 buffer->rowstride = rowbytes;
.