scx/c/xlib/pixel.c

18 lines
447 B
C
Raw Normal View History

2001-05-08 10:21:00 -04:00
#include "xlib.h"
#include "scheme48.h"
2001-05-08 10:21:00 -04:00
s48_value Black_Pixel(s48_value Xdisplay) {
Display* dpy = EXTRACT_DISPLAY(Xdisplay);
return ENTER_PIXEL( BlackPixel(dpy, DefaultScreen(dpy)) );
2001-05-08 10:21:00 -04:00
}
s48_value White_Pixel(s48_value Xdisplay) {
Display* dpy = EXTRACT_DISPLAY(Xdisplay);
return ENTER_PIXEL( WhitePixel(dpy, DefaultScreen(dpy)) );
2001-05-08 10:21:00 -04:00
}
void s48_init_pixel(void) {
S48_EXPORT_FUNCTION(Black_Pixel);
S48_EXPORT_FUNCTION(White_Pixel);
2001-05-08 10:21:00 -04:00
}