mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
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.
This commit is contained in:
parent
b9ef6f2cba
commit
f2e4ead7db
@ -1,3 +1,8 @@
|
||||
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:
|
||||
|
@ -1,3 +1,8 @@
|
||||
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:
|
||||
|
@ -1,3 +1,8 @@
|
||||
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:
|
||||
|
@ -1,3 +1,8 @@
|
||||
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:
|
||||
|
@ -1,3 +1,8 @@
|
||||
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:
|
||||
|
@ -1,3 +1,8 @@
|
||||
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:
|
||||
|
@ -1,3 +1,8 @@
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user