Commit f2e4ead7 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

Remove bogus colormap setting.

2000-12-05  Alexander Larsson  <alexl@redhat.com>

	* gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
	Remove bogus colormap setting.
parent b9ef6f2c
2000-12-05 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
Remove bogus colormap setting.
2000-12-05 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkcolor-fb.c:
......
2000-12-05 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
Remove bogus colormap setting.
2000-12-05 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkcolor-fb.c:
......
2000-12-05 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
Remove bogus colormap setting.
2000-12-05 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkcolor-fb.c:
......
2000-12-05 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
Remove bogus colormap setting.
2000-12-05 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkcolor-fb.c:
......
2000-12-05 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
Remove bogus colormap setting.
2000-12-05 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkcolor-fb.c:
......
2000-12-05 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
Remove bogus colormap setting.
2000-12-05 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkcolor-fb.c:
......
2000-12-05 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
Remove bogus colormap setting.
2000-12-05 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkcolor-fb.c:
......
......@@ -471,7 +471,7 @@ gdk_fb_set_mode (GdkFBDisplay *display)
static GdkFBDisplay *
gdk_fb_display_new (const char *filename)
{
int fd, n;
int fd;
GdkFBDisplay *retval;
fd = open (filename, O_RDWR);
......@@ -498,19 +498,6 @@ gdk_fb_display_new (const char *filename)
0);
g_assert (retval->fbmem != MAP_FAILED);
if (retval->sinfo.visual == FB_VISUAL_PSEUDOCOLOR)
{
guint16 red[256], green[256], blue[256];
struct fb_cmap cmap;
for(n = 0; n < 16; n++)
red[n] = green[n] = blue[n] = n << 12;
for(n = 16; n < 256; n++)
red[n] = green[n] = blue[n] = n << 8;
cmap.red = red; cmap.green = green; cmap.blue = blue; cmap.len = 256; cmap.start = 0;
ioctl (fd, FBIOPUTCMAP, &cmap);
}
if (retval->sinfo.visual == FB_VISUAL_TRUECOLOR)
{
retval->red_byte = retval->modeinfo.red.offset >> 3;
......
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