Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Oblomov
gtk
Commits
f1a524a2
Commit
f1a524a2
authored
Aug 20, 1998
by
Raph Levien
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixes that were needed for the Gimp/GdkRgb integration.
parent
38db8d19
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
566 additions
and
1513 deletions
+566
-1513
ChangeLog
ChangeLog
+13
-0
ChangeLog.pre-2-0
ChangeLog.pre-2-0
+13
-0
ChangeLog.pre-2-10
ChangeLog.pre-2-10
+13
-0
ChangeLog.pre-2-2
ChangeLog.pre-2-2
+13
-0
ChangeLog.pre-2-4
ChangeLog.pre-2-4
+13
-0
ChangeLog.pre-2-6
ChangeLog.pre-2-6
+13
-0
ChangeLog.pre-2-8
ChangeLog.pre-2-8
+13
-0
gdk/gdkrgb.c
gdk/gdkrgb.c
+362
-254
gtk/gtkpreview.c
gtk/gtkpreview.c
+104
-1237
gtk/gtkpreview.h
gtk/gtkpreview.h
+9
-22
No files found.
ChangeLog
View file @
f1a524a2
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
...
...
ChangeLog.pre-2-0
View file @
f1a524a2
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
...
...
ChangeLog.pre-2-10
View file @
f1a524a2
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
...
...
ChangeLog.pre-2-2
View file @
f1a524a2
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
...
...
ChangeLog.pre-2-4
View file @
f1a524a2
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
...
...
ChangeLog.pre-2-6
View file @
f1a524a2
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
...
...
ChangeLog.pre-2-8
View file @
f1a524a2
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
...
...
gdk/gdkrgb.c
View file @
f1a524a2
This diff is collapsed.
Click to expand it.
gtk/gtkpreview.c
View file @
f1a524a2
This diff is collapsed.
Click to expand it.
gtk/gtkpreview.h
View file @
f1a524a2
...
...
@@ -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
;
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
;
guchar
*
lookup
;
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment