changed blitz_create_win

This commit is contained in:
Anselm R. Garbe 2006-06-13 09:53:55 +02:00
parent c2475e7e28
commit 14ba871977
2 changed files with 6 additions and 5 deletions

View File

@ -77,8 +77,8 @@ void blitz_loadfont(BlitzFont *font, char *fontstr);
int blitz_loadcolor(BlitzColor *c, char *colstr);
/* window.c */
void blitz_create_win(BlitzWindow *win, unsigned long mask,
int x, int y, int w, int h);
BlitzWindow *blitz_create_win(unsigned long mask,
int x, int y, int w, int h);
void blitz_resize_win(BlitzWindow *win,
int x, int y, int w, int h);
void blitz_destroy_win(BlitzWindow *win);

View File

@ -8,10 +8,10 @@
#include "blitz.h"
void
blitz_create_win(BlitzWindow *win, unsigned long mask,
int x, int y, int w, int h)
BlitzWindow *
blitz_create_win(unsigned long mask, int x, int y, int w, int h)
{
BlitzWindow *win = cext_emallocz(sizeof(BlitzWindow));
XSetWindowAttributes wa;
wa.override_redirect = 1;
wa.background_pixmap = ParentRelative;
@ -26,6 +26,7 @@ blitz_create_win(BlitzWindow *win, unsigned long mask,
win->rect.y = y;
win->rect.width = w;
win->rect.height = h;
return win;
}
void