+#else
+void MSWSetImagePixels(Display *dc, XImage *image, unsigned int width, unsigned int height,
+ unsigned int *pixelindex, Pixel *pixels)
+{
+ unsigned int *data = pixelindex;
+ unsigned int x, y;
+// TODO:
+/*
+ SelectObject(*dc, image->bitmap);
+ if (image->depth == 1)
+ {
+ for (y = 0; y < height; y++) {
+ for (x = 0; x < width; x++) {
+ SetPixel(*dc, x, y, (pixels[*(data++)] ? RGB(255,255,255) : 0));
+ }
+ }
+ }
+ else
+ {
+ for (y = 0; y < height; y++) {
+ for (x = 0; x < width; x++) {
+ SetPixel(*dc, x, y, pixels[*(data++)]);
+ }
+ }
+ }
+*/
+ return;
+}
+#endif // __VISAGECPP__
+