Minor fixes that were needed for the Gimp/GdkRgb integration.

This commit is contained in:
Raph Levien 1998-08-20 06:52:52 +00:00
parent 38db8d1951
commit f1a524a21e
10 changed files with 564 additions and 1511 deletions

View File

@ -1,3 +1,16 @@
1998-08-19 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c: fixed some bugs in the 565_d mode, and added a
4bpp static_color mode (for vga displays). Also fixed a '64' value
in the dither matrix, which was causing one pixel out of 16k to be
dithered wrong.
* gtk/gtkpreview.{c,h}: Changed it to work with GdkRgb, gutting
most of the contents. This is an API change - any apps that relied
on the internal structure of GtkPreview will need some change -
most notably in the use of reserved colors. The Gimp needed
changes in this regard.
Wed Aug 19 00:11:14 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.c (gtk_init): allow argument parsing in gtk without

View File

@ -1,3 +1,16 @@
1998-08-19 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c: fixed some bugs in the 565_d mode, and added a
4bpp static_color mode (for vga displays). Also fixed a '64' value
in the dither matrix, which was causing one pixel out of 16k to be
dithered wrong.
* gtk/gtkpreview.{c,h}: Changed it to work with GdkRgb, gutting
most of the contents. This is an API change - any apps that relied
on the internal structure of GtkPreview will need some change -
most notably in the use of reserved colors. The Gimp needed
changes in this regard.
Wed Aug 19 00:11:14 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.c (gtk_init): allow argument parsing in gtk without

View File

@ -1,3 +1,16 @@
1998-08-19 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c: fixed some bugs in the 565_d mode, and added a
4bpp static_color mode (for vga displays). Also fixed a '64' value
in the dither matrix, which was causing one pixel out of 16k to be
dithered wrong.
* gtk/gtkpreview.{c,h}: Changed it to work with GdkRgb, gutting
most of the contents. This is an API change - any apps that relied
on the internal structure of GtkPreview will need some change -
most notably in the use of reserved colors. The Gimp needed
changes in this regard.
Wed Aug 19 00:11:14 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.c (gtk_init): allow argument parsing in gtk without

View File

@ -1,3 +1,16 @@
1998-08-19 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c: fixed some bugs in the 565_d mode, and added a
4bpp static_color mode (for vga displays). Also fixed a '64' value
in the dither matrix, which was causing one pixel out of 16k to be
dithered wrong.
* gtk/gtkpreview.{c,h}: Changed it to work with GdkRgb, gutting
most of the contents. This is an API change - any apps that relied
on the internal structure of GtkPreview will need some change -
most notably in the use of reserved colors. The Gimp needed
changes in this regard.
Wed Aug 19 00:11:14 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.c (gtk_init): allow argument parsing in gtk without

View File

@ -1,3 +1,16 @@
1998-08-19 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c: fixed some bugs in the 565_d mode, and added a
4bpp static_color mode (for vga displays). Also fixed a '64' value
in the dither matrix, which was causing one pixel out of 16k to be
dithered wrong.
* gtk/gtkpreview.{c,h}: Changed it to work with GdkRgb, gutting
most of the contents. This is an API change - any apps that relied
on the internal structure of GtkPreview will need some change -
most notably in the use of reserved colors. The Gimp needed
changes in this regard.
Wed Aug 19 00:11:14 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.c (gtk_init): allow argument parsing in gtk without

View File

@ -1,3 +1,16 @@
1998-08-19 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c: fixed some bugs in the 565_d mode, and added a
4bpp static_color mode (for vga displays). Also fixed a '64' value
in the dither matrix, which was causing one pixel out of 16k to be
dithered wrong.
* gtk/gtkpreview.{c,h}: Changed it to work with GdkRgb, gutting
most of the contents. This is an API change - any apps that relied
on the internal structure of GtkPreview will need some change -
most notably in the use of reserved colors. The Gimp needed
changes in this regard.
Wed Aug 19 00:11:14 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.c (gtk_init): allow argument parsing in gtk without

View File

@ -1,3 +1,16 @@
1998-08-19 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c: fixed some bugs in the 565_d mode, and added a
4bpp static_color mode (for vga displays). Also fixed a '64' value
in the dither matrix, which was causing one pixel out of 16k to be
dithered wrong.
* gtk/gtkpreview.{c,h}: Changed it to work with GdkRgb, gutting
most of the contents. This is an API change - any apps that relied
on the internal structure of GtkPreview will need some change -
most notably in the use of reserved colors. The Gimp needed
changes in this regard.
Wed Aug 19 00:11:14 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.c (gtk_init): allow argument parsing in gtk without

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -46,6 +46,11 @@ struct _GtkPreview
guint16 buffer_width;
guint16 buffer_height;
guint16 bpp;
guint16 rowstride;
GdkRgbDither dither;
guint type : 1;
guint expand : 1;
};
@ -55,28 +60,8 @@ struct _GtkPreviewInfo
GdkVisual *visual;
GdkColormap *cmap;
gulong *color_pixels;
gulong *gray_pixels;
gulong *reserved_pixels;
guchar *lookup;
gulong *lookup_red;
gulong *lookup_green;
gulong *lookup_blue;
GtkDitherInfo *dither_red;
GtkDitherInfo *dither_green;
GtkDitherInfo *dither_blue;
GtkDitherInfo *dither_gray;
guchar ***dither_matrix;
guint nred_shades;
guint ngreen_shades;
guint nblue_shades;
guint ngray_shades;
guint nreserved;
guint bpp;
gint cmap_alloced;
gdouble gamma;
};
@ -92,7 +77,6 @@ struct _GtkPreviewClass
GtkPreviewInfo info;
GdkImage *image;
};
@ -111,6 +95,7 @@ void gtk_preview_put (GtkPreview *preview,
gint desty,
gint width,
gint height);
/* gtk_preview_put_row is broken */
void gtk_preview_put_row (GtkPreview *preview,
guchar *src,
guchar *dest,
@ -132,6 +117,8 @@ void gtk_preview_set_color_cube (guint nred_shades,
guint ngray_shades);
void gtk_preview_set_install_cmap (gint install_cmap);
void gtk_preview_set_reserved (gint nreserved);
void gtk_preview_set_dither (GtkPreview *preview,
GdkRgbDither dither);
GdkVisual* gtk_preview_get_visual (void);
GdkColormap* gtk_preview_get_cmap (void);
GtkPreviewInfo* gtk_preview_get_info (void);