Commit 3b782bdb authored by Alex Larsson's avatar Alex Larsson Committed by Alexander Larsson

Better error messages.

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.
parent 42cc312d
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
......
......@@ -171,7 +171,7 @@ gdk_colormap_new (GdkVisual *visual,
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);
......@@ -289,7 +289,7 @@ gdk_colormap_get_system (void)
}
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 ();
......
......@@ -134,6 +134,10 @@ gdk_pixmap_new (GdkWindow *window,
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;
......
......@@ -420,8 +420,8 @@ gdk_fb_fill_span_generic (GdkDrawable *drawable,
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);
}
......
......@@ -46,12 +46,12 @@ gdk_visual_init (void)
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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment