My The Cheat wants to know what your crappy toy is this week.
This commit is contained in:
parent
1dc9a1c90d
commit
b14146606d
2 changed files with 12 additions and 12 deletions
|
@ -15,8 +15,8 @@
|
|||
typedef struct _hexagram_window hexagram_window;
|
||||
|
||||
hexagram_window *hexagram_window_new_x11(const char *display,
|
||||
unsigned int width,
|
||||
unsigned int height);
|
||||
int width,
|
||||
int height);
|
||||
|
||||
void hexagram_window_destroy(hexagram_window *window);
|
||||
|
||||
|
|
20
src/window.c
20
src/window.c
|
@ -10,10 +10,8 @@
|
|||
struct _hexagram_window {
|
||||
Display *display;
|
||||
|
||||
int screen;
|
||||
|
||||
unsigned int width,
|
||||
height;
|
||||
int screen,
|
||||
width, height;
|
||||
|
||||
Window root,
|
||||
win;
|
||||
|
@ -33,8 +31,8 @@ struct _hexagram_window {
|
|||
};
|
||||
|
||||
hexagram_window *hexagram_window_new_x11(const char *display,
|
||||
unsigned int width,
|
||||
unsigned int height) {
|
||||
int width,
|
||||
int height) {
|
||||
hexagram_window *window;
|
||||
int major, minor;
|
||||
|
||||
|
@ -42,6 +40,9 @@ hexagram_window *hexagram_window_new_x11(const char *display,
|
|||
goto error_malloc_window;
|
||||
}
|
||||
|
||||
window->width = width;
|
||||
window->height = height;
|
||||
|
||||
/*
|
||||
* Connect to the X display
|
||||
*/
|
||||
|
@ -105,8 +106,7 @@ hexagram_window *hexagram_window_new_x11(const char *display,
|
|||
}
|
||||
|
||||
cairo_xlib_surface_set_size(window->surface_bg,
|
||||
window->width,
|
||||
window->height);
|
||||
width, height);
|
||||
|
||||
if ((window->surface_fg = cairo_xlib_surface_create(window->display,
|
||||
window->buf,
|
||||
|
@ -118,8 +118,8 @@ hexagram_window *hexagram_window_new_x11(const char *display,
|
|||
}
|
||||
|
||||
cairo_xlib_surface_set_size(window->surface_fg,
|
||||
window->width,
|
||||
window->height);
|
||||
width,
|
||||
height);
|
||||
|
||||
return window;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue