+2001-05-04 Alex Larsson <alla@lysator.liu.se>
+
+ * gdk/linux-fb/gdkcolor-fb.c:
+ Better error messages.
+
+ * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
+ Initialize abs_x and abs_y.
+
+ * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
+ Correct handling of stipple offset.
+
+ * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
+ Treat directcolor framebuffers as truecolor.
+
Thu May 3 14:13:49 2001 Owen Taylor <otaylor@redhat.com>
* INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
+2001-05-04 Alex Larsson <alla@lysator.liu.se>
+
+ * gdk/linux-fb/gdkcolor-fb.c:
+ Better error messages.
+
+ * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
+ Initialize abs_x and abs_y.
+
+ * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
+ Correct handling of stipple offset.
+
+ * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
+ Treat directcolor framebuffers as truecolor.
+
Thu May 3 14:13:49 2001 Owen Taylor <otaylor@redhat.com>
* INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
+2001-05-04 Alex Larsson <alla@lysator.liu.se>
+
+ * gdk/linux-fb/gdkcolor-fb.c:
+ Better error messages.
+
+ * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
+ Initialize abs_x and abs_y.
+
+ * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
+ Correct handling of stipple offset.
+
+ * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
+ Treat directcolor framebuffers as truecolor.
+
Thu May 3 14:13:49 2001 Owen Taylor <otaylor@redhat.com>
* INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
+2001-05-04 Alex Larsson <alla@lysator.liu.se>
+
+ * gdk/linux-fb/gdkcolor-fb.c:
+ Better error messages.
+
+ * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
+ Initialize abs_x and abs_y.
+
+ * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
+ Correct handling of stipple offset.
+
+ * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
+ Treat directcolor framebuffers as truecolor.
+
Thu May 3 14:13:49 2001 Owen Taylor <otaylor@redhat.com>
* INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
+2001-05-04 Alex Larsson <alla@lysator.liu.se>
+
+ * gdk/linux-fb/gdkcolor-fb.c:
+ Better error messages.
+
+ * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
+ Initialize abs_x and abs_y.
+
+ * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
+ Correct handling of stipple offset.
+
+ * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
+ Treat directcolor framebuffers as truecolor.
+
Thu May 3 14:13:49 2001 Owen Taylor <otaylor@redhat.com>
* INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
+2001-05-04 Alex Larsson <alla@lysator.liu.se>
+
+ * gdk/linux-fb/gdkcolor-fb.c:
+ Better error messages.
+
+ * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
+ Initialize abs_x and abs_y.
+
+ * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
+ Correct handling of stipple offset.
+
+ * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
+ Treat directcolor framebuffers as truecolor.
+
Thu May 3 14:13:49 2001 Owen Taylor <otaylor@redhat.com>
* INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
+2001-05-04 Alex Larsson <alla@lysator.liu.se>
+
+ * gdk/linux-fb/gdkcolor-fb.c:
+ Better error messages.
+
+ * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
+ Initialize abs_x and abs_y.
+
+ * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
+ Correct handling of stipple offset.
+
+ * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
+ Treat directcolor framebuffers as truecolor.
+
Thu May 3 14:13:49 2001 Owen Taylor <otaylor@redhat.com>
* INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
break;
case GDK_VISUAL_DIRECT_COLOR:
- g_error("NYI");
+ g_warning ("gdk_colormap_new () on a direct color visual not implemented");
#if 0
colormap->colors = g_new (GdkColor, colormap->size);
}
break;
case GDK_VISUAL_DIRECT_COLOR:
- g_error("NYI");
+ g_warning ("gdk_colormap_get_system() on a direct color visual is not implemented");
break;
default:
g_assert_not_reached ();
private = GDK_DRAWABLE_IMPL_FBDATA (pixmap);
private->rowstride = (width * depth + 7) / 8; /* Round up to nearest whole byte */
private->mem = g_malloc (private->rowstride * height);
+ private->abs_x = 0;
+ private->abs_y = 0;
+ private->llim_x = 0;
+ private->llim_y = 0;
private->lim_x = width;
private->lim_y = height;
private->width = width;
gc_private->values.stipple)
{
ts = gc_private->values.stipple;
- tsxoff = GDK_DRAWABLE_FBDATA (ts)->abs_x - gc_private->values.ts_x_origin - private->abs_x;
- tsyoff = GDK_DRAWABLE_FBDATA (ts)->abs_y - gc_private->values.ts_y_origin - private->abs_y;
+ tsxoff = - GDK_DRAWABLE_IMPL_FBDATA (ts)->abs_x - gc_private->values.ts_x_origin - private->abs_x;
+ tsyoff = - GDK_DRAWABLE_IMPL_FBDATA (ts)->abs_y - gc_private->values.ts_y_origin - private->abs_y;
solid_stipple = (gc_private->values.fill == GDK_OPAQUE_STIPPLED);
}
system_visual->type = GDK_VISUAL_PSEUDO_COLOR;
break;
case FB_VISUAL_DIRECTCOLOR:
- system_visual->colormap_size = 1 << gdk_display->modeinfo.bits_per_pixel;
- system_visual->type = GDK_VISUAL_DIRECT_COLOR;
+ /* TODO: Should load the colormap to ramps here, as they might be initialized to
+ some other garbage */
+
/* Fall through */
case FB_VISUAL_TRUECOLOR:
- if (gdk_display->sinfo.visual == FB_VISUAL_TRUECOLOR)
- system_visual->type = GDK_VISUAL_TRUE_COLOR;
+ system_visual->type = GDK_VISUAL_TRUE_COLOR;
system_visual->red_prec = gdk_display->modeinfo.red.length;
system_visual->red_shift = gdk_display->modeinfo.red.offset;