Mercurial > dwindows
comparison gtk/dw.c @ 66:664a274a46a6
Fixed color depth problem when creating a new pixmap.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 14 Jan 2002 02:10:31 +0000 |
parents | a6801a2260af |
children | ab9b0fa6c66e |
comparison
equal
deleted
inserted
replaced
65:a12f4c621b9b | 66:664a274a46a6 |
---|---|
4005 | 4005 |
4006 if (!(pixmap = calloc(1,sizeof(struct _hpixmap)))) | 4006 if (!(pixmap = calloc(1,sizeof(struct _hpixmap)))) |
4007 return NULL; | 4007 return NULL; |
4008 | 4008 |
4009 if (!depth) | 4009 if (!depth) |
4010 depth = 24; | 4010 depth = -1; |
4011 | 4011 |
4012 pixmap->width = width; pixmap->height = height; | 4012 pixmap->width = width; pixmap->height = height; |
4013 | 4013 |
4014 | 4014 |
4015 DW_MUTEX_LOCK; | 4015 DW_MUTEX_LOCK; |