1. 20 Jun, 2003 1 commit
  2. 16 Jun, 2003 1 commit
  3. 13 Jun, 2003 1 commit
    • Sven Neumann's avatar
      app/gui/info-window.c libgimpcolor/gimpcolorspace.c libgimpcolor/gimprgb.c · aa4448db
      Sven Neumann authored
      2003-06-13  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/info-window.c
      	* libgimpcolor/gimpcolorspace.c
      	* libgimpcolor/gimprgb.c
      	* libgimpwidgets/gimpcolorscales.c
      	* libgimpwidgets/gimpcolorselect.c: use ROUND() where appropriate.
      
      	* libgimpwidgets/gimpcolorarea.c (gimp_color_area_render): use
      	gimp_rgb_get_uchar().
      aa4448db
  4. 11 Jun, 2003 1 commit
    • Sven Neumann's avatar
      app/gui/info-window.c libgimpwidgets/gimpcolorscales.c applied some · 08879c9f
      Sven Neumann authored
      2003-06-11  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/info-window.c
      	* libgimpwidgets/gimpcolorscales.c
      	* libgimpwidgets/gimpcolorselect.c: applied some slightly modified
      	patches from Michael Bushey that fix rounding errors when
      	converting between color values in gdouble and guchar
      	representation (bug #109241).
      
      	* libgimpcolor/gimpcolorspace.c
      	* libgimpcolor/gimprgb.c: similar fixes here.
      08879c9f
  5. 20 May, 2003 2 commits
    • Michael Natterer's avatar
      removed redundant functions gimp_rgb_to_hsv_double() and · fc6ddb05
      Michael Natterer authored
      2003-05-20  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpcolor/gimpcolorspace.[ch]: removed redundant functions
      	gimp_rgb_to_hsv_double() and gimp_hsv_to_rgb_double().
      
      	* app/core/gimpdrawable-blend.c: use gimp_rgb_to_hsv() and
      	gimp_hsv_to_rgb() instead.
      
      	* plug-ins/fp/fp.[ch]
      	* plug-ins/fp/fp_misc.c: ditto. Deuglyfied the changed functions'
      	coding style a lot.
      fc6ddb05
    • Michael Natterer's avatar
      Some color API cleanup: · 470947f9
      Michael Natterer authored
      2003-05-20  Michael Natterer  <mitch@gimp.org>
      
      	Some color API cleanup:
      
      	* libgimpcolor/gimpcolortypes.h: added struct GimpHSL. All values
      	are doubles in a [0.0..1.0] range.
      
      	* libgimpcolor/gimpcolorspace.[ch]: changed the GimpRGB <-> HSL
      	functions to use the new struct instead of separate hue, saturation
      	and lightness doubles. Note that the hue range has changed from
      	[0.0..360.0] to [0.0..1.0].
      
      	* app/base/colorize.c (colorize_calculate)
      	* plug-ins/common/AlienMap2.c (transform): changed accordingly.
      470947f9
  6. 19 May, 2003 1 commit
    • Michael Natterer's avatar
      fixed to work like gimp_hls_to_rgb_int() (does the right thing now for the · 49b85178
      Michael Natterer authored
      2003-05-19  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpcolor/gimpcolorspace.c (gimp_hsl_to_rgb): fixed to work
      	like gimp_hls_to_rgb_int() (does the right thing now for the
      	saturation == 0 case). Some minor cleanups.
      
      	Implemented "Colorize" as suggested in bug #20509. It's not a
      	toggle in the "Hue/Saturation" tool dialog (which would be a gross
      	hack IMHO) but a separate tool. Fixes bug #20509.
      
      	* app/base/Makefile.am
      	* app/base/base-types.h
      	* app/base/colorize.[ch]: the actual mapping function lives
      	here. Its algorithm was taken from the "colorify" plug-in.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpcolorizetool.[ch]: the tool.
      
      	* app/tools/tools.c: register it.
      
      	* app/gui/dialogs.c: session-manage its dialog.
      
      	* libgimpwidgets/gimpstock.[ch]
      	* themes/Default/images/Makefile.am
      	* themes/Default/images/tools/stock-tool-colorize-16.png
      	* themes/Default/images/tools/stock-tool-colorize-22.png: new
      	icons from Jimmac.
      
      	Unrelated:
      
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c: don't #include "tool_manager.h"
      49b85178
  7. 21 Jun, 2002 1 commit
  8. 23 Jan, 2001 2 commits
    • Michael Natterer's avatar
      Makefile.am configure.in added stuff for the new library below. · cb166972
      Michael Natterer authored
      2001-01-24  Michael Natterer  <mitch@gimp.org>
      
      	* Makefile.am
      	* configure.in
      	* gimptool.in: added stuff for the new library below.
      
      	* libgimpmath/.cvsignore
      	* libgimpmath/Makefile.am
      	* libgimpmath/gimpmath.def
      	* libgimpmath/gimpmath.h
      	* libgimpmath/gimpmathtypes.h
      	* libgimpmath/gimpmatrix.c
      	* libgimpmath/gimpmatrix.h
      	* libgimpmath/gimpvector.c
      	* libgimpmath/gimpvector.h
      	* libgimpmath/makefile.mingw.in
      	* libgimpmath/makefile.msc: new shared library. Depends on glib only.
      
      	* libgimp/Makefile.am
      	* libgimp/gimp.def
      	* libgimp/gimp.h: removed the math stuff.
      
      	* libgimp/gimpmath.h
      	* libgimp/gimpmatrix.[ch]
      	* libgimp/gimpvector.[ch]: removed.
      
      	* app/Makefile.am
      	* plug-ins/Lighting/Makefile.am
      	* plug-ins/MapObject/Makefile.am
      	* plug-ins/pagecurl/Makefile.am: link against libgimpmath.la
      
      	* app/[many files]
      	* libgimpcolor/gimpcolorspace.c
      	* libgimpcolor/gimprgb.c
      	* libgimp/gimpadaptivesupersample.c
      	* libgimp/gimpbilinear.c
      	* libgimp/gimpwidgets.c
      	* modules/colorsel_gtk.c
      	* modules/colorsel_triangle.c
      	* modules/colorsel_water.c
      	* plug-ins/libgck/gck/gckcolor.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/image.pdb: include "libgimpmath/gimpmath.h",
      	removed the remaining includes of the old color stuff.
      cb166972
    • Michael Natterer's avatar
      Makefile.am configure.in added stuff for the new library below. · e803bedd
      Michael Natterer authored
      2001-01-23  Michael Natterer  <mitch@gimp.org>
      
      	* Makefile.am
      	* configure.in
      	* gimptool.in: added stuff for the new library below.
      
      	* libgimpcolor/.cvsignore
      	* libgimpcolor/Makefile.am
      	* libgimpcolor/gimpcolor.h
      	* libgimpcolor/gimpcolorspace.c
      	* libgimpcolor/gimpcolorspace.h
      	* libgimpcolor/gimpcolortypes.h
      	* libgimpcolor/gimphsv.c
      	* libgimpcolor/gimphsv.h
      	* libgimpcolor/gimprgb.c
      	* libgimpcolor/gimprgb.h: new shared library which both the app
      	and plug-ins link against. The library depends only on glib.
      
      	* libgimpcolor/gimpcolor.def
      	* libgimpcolor/makefile.mingw.in
      	* libgimpcolor/makefile.msc: added Win32 build files which
      	definitely don't work.
      
      	* libgimp/Makefile.am
      	* libgimp/gimpcolor.[ch]
      	* libgimp/gimpcolorspace.[ch]: removed.
      
      	* libgimp/gimp.h
      	* libgimp/gimpadaptivesupersample.c
      	* libgimp/gimpbilinear.c
      	* libgimp/gimppalette.c
      	* libgimp/gimptypes.h: include the stuff from libgimpcolor.
      
      	Plug-Ins don't need to include <libgimpcolor/gimpcolor.h>
      	explicitely. LibGimp depends on libgimpcolor and thus also includes
      	it's headers.
      
      	* libgimp/gimp.def
      	* libgimp/makefile.mingw.in: fiddled around with Win32 stuff...
      
      	* app/Makefile.am: link against libgimpcolor.la
      
      	* app/apptypes.h: include "libgimpcolor/gimpcolortypes.h"
      
      	* app/asupsample.c
      	* app/channels_dialog.c
      	* app/colormap_dialog.c
      	* app/commands.c
      	* app/convert.c
      	* app/devices.c
      	* app/disp_callbacks.c
      	* app/drawable.c
      	* app/gimpcontext.c
      	* app/gimpdnd.c
      	* app/gimpimage.c
      	* app/gimppalette.c
      	* app/gimprc.c
      	* app/gradient.c
      	* app/libgimp_glue.c
      	* app/palette.c
      	* app/palette_import.c
      	* app/qmask.c
      	* app/xcf.c
      	* app/tools/paint_core.c
      	* app/tools/paintbrush.c
      	* app/tools/pencil.c: include "libgimpcolor/gimpcolor.h" before all
      	gimp includes because it's a standalone library.
      
      	* plug-ins/FractalExplorer/Makefile.am
      	* plug-ins/Lighting/Makefile.am
      	* plug-ins/MapObject/Makefile.am
      	* plug-ins/bmp/Makefile.am
      	* plug-ins/common/Makefile.am
      	* plug-ins/common/mkgen.pl
      	* plug-ins/dbbrowser/Makefile.am
      	* plug-ins/faxg3/Makefile.am
      	* plug-ins/fits/Makefile.am
      	* plug-ins/flame/Makefile.am
      	* plug-ins/fp/Makefile.am
      	* plug-ins/gap/Makefile.am
      	* plug-ins/gdyntext/Makefile.am
      	* plug-ins/gfig/Makefile.am
      	* plug-ins/gflare/Makefile.am
      	* plug-ins/gfli/Makefile.am
      	* plug-ins/gimpressionist/Makefile.am
      	* plug-ins/helpbrowser/Makefile.am
      	* plug-ins/ifscompose/Makefile.am
      	* plug-ins/imagemap/Makefile.am
      	* plug-ins/maze/Makefile.am
      	* plug-ins/mosaic/Makefile.am
      	* plug-ins/pagecurl/Makefile.am
      	* plug-ins/print/Makefile.am
      	* plug-ins/rcm/Makefile.am
      	* plug-ins/script-fu/Makefile.am
      	* plug-ins/sel2path/Makefile.am
      	* plug-ins/sgi/Makefile.am
      	* plug-ins/webbrowser/Makefile.am
      	* plug-ins/xjt/Makefile.am: add libgimpcolor.la to LDADD.
      
      	* INSTALL: don't recommend to --disable-shared for development.
      
      	* TODO.xml: increased some percentages, added plug-in help stuff.
      e803bedd
  9. 16 Jan, 2001 1 commit
    • Sven Neumann's avatar
      fixed RGB to HSV routine · e4a16ae6
      Sven Neumann authored
      2001-01-16  Sven Neumann  <sven@gimp.org>
      
      	* libgimp/gimpcolorspace.c: fixed RGB to HSV routine
      
      	* app/color_notebook.c: tweaked dialog layout a little, disabled
      	toggle_buttons if the colorselector does not implement the set_channel
      	method.
      
      	* modules/colorsel_gtk.c
      	* modules/colorsel_triangle.c
      	* modules/colorsel_water.c: removed empty set_channel methods
      e4a16ae6
  10. 15 Jan, 2001 1 commit
    • Michael Natterer's avatar
      app/color_notebook.[ch] app/color_select.c libgimp/gimpcolorselector.h · 368d0efe
      Michael Natterer authored
      2001-01-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/color_notebook.[ch]
      	* app/color_select.c
      	* libgimp/gimpcolorselector.h
      	* modules/colorsel_gtk.c
      	* modules/colorsel_triangle.c
      	* modules/colorsel_water.c: use GimpRGB and GimpHSV.
      
      	* libgimp/gimpcolor.c
      	* libgimp/gimpcolorspace.[ch]: All rgb_to_hsv functions:
      
      	if r == g == b the difference between the max and min value
      	is 0 and we should avoid to divide by it ;-)
      368d0efe
  11. 14 Jan, 2001 1 commit
    • Sven Neumann's avatar
      added GimpHSV type and functions and gimp_rgb_composite functions · 70c1ecfd
      Sven Neumann authored
      2001-01-14  Sven Neumann  <sven@gimp.org>
      
      	* libgimp/gimpcolor.[ch]: added GimpHSV type and functions and
      	gimp_rgb_composite functions
      
      	* libgimp/gimpcolorbutton.c: indentation
      
      	* libgimp/gimpcolorspace.[ch]: added GimpRGB <-> GimpHSV conversion
      	routines
      
      	* libgimp/gimpwidgets.[ch]: removed gimp_color_update_uchar function
      
      	* plug-ins/Lighting/lighting_main.[ch]
      	* plug-ins/Lighting/lighting_preview.c
      	* plug-ins/Lighting/lighting_shade.c
      	* plug-ins/MapObject/mapobject_image.c
      	* plug-ins/MapObject/mapobject_main.[ch]
      	* plug-ins/MapObject/mapobject_shade.c
      	* plug-ins/common/mapcolor.c
      	* plug-ins/common/nova.c
      	* plug-ins/common/papertile.c
      	* plug-ins/common/sinus.c
      	* plug-ins/ifscompose/ifscompose.c
      	* plug-ins/script-fu/script-fu-scripts.c: use GimpRGB and GimpHSV
      70c1ecfd
  12. 01 Jan, 2001 1 commit
    • Michael Natterer's avatar
      plug-ins/libgck/gck/gck.h removed the GckRGB color type and all it's · 4245ab65
      Michael Natterer authored
      2001-01-01  Michael Natterer  <mitch@gimp.org>
      
      	* plug-ins/libgck/gck/gck.h
      	* plug-ins/libgck/gck/gckcolor.c: removed the GckRGB color type
      	and all it's functions.
      
      	* libgimp/Makefile.am
      	* libgimp/gimpcolor.[ch]: new files containing the new GimpRGB color
      	type and assorted functions.
      
      	* libgimp/gimpcolorspace.[ch]: colorspace conversion routines for
      	the new GimpRGB type. Also taken from LibGCK.
      
      	* libgimp/gimp.h
      	* libgimp/gimptypes.h: #include "gimpcolor.h". It's ugly to include
      	it in both files but unavoidable to follow our new "*.c" file include
      	policy. This will go away as libgimp will be chopped up into pieces
      	anyway.
      
      	* app/apptypes.h
      	* app/asupsample.[ch]
      	* app/blend.c
      	* app/color_transfer.h
      	* app/gradient_header.h: removed "color_t" and use GimpRGB instead.
      
      	* plug-ins/Lighting/lighting_apply.c
      	* plug-ins/Lighting/lighting_image.c
      	* plug-ins/Lighting/lighting_image.h
      	* plug-ins/Lighting/lighting_main.c
      	* plug-ins/Lighting/lighting_main.h
      	* plug-ins/Lighting/lighting_preview.c
      	* plug-ins/Lighting/lighting_shade.c
      	* plug-ins/Lighting/lighting_shade.h
      	* plug-ins/MapObject/mapobject_apply.c
      	* plug-ins/MapObject/mapobject_image.c
      	* plug-ins/MapObject/mapobject_image.h
      	* plug-ins/MapObject/mapobject_main.c
      	* plug-ins/MapObject/mapobject_main.h
      	* plug-ins/MapObject/mapobject_preview.c
      	* plug-ins/MapObject/mapobject_shade.c
      	* plug-ins/MapObject/mapobject_shade.h
      	* modules/colorsel_triangle.c: s/GckRGB/GimpRGB/g
      
      	* plug-ins/gdyntext/gdyntextcompat.h: check also for GIMP's minor
      	version when deciding if to add a missing PDB wrapper.
      	(All this compat cruft including libgimp/gimpcompat.h should go
      	away ASAP)
      4245ab65
  13. 31 Dec, 2000 1 commit
    • Michael Natterer's avatar
      More preparation for LibGCK removal: · 40916e09
      Michael Natterer authored
      2000-12-31  Michael Natterer  <mitch@gimp.org>
      
      	More preparation for LibGCK removal:
      
      	* libgimp/gimpcolorspace.[ch]: added a "_int" suffix to all functions
      	operating on 3 gint pointers, just like the gdouble functions have
      	a "_double" suffix.
      
      	* app/color_balance.c
      	* app/hue_saturation.c
      	* app/paint_funcs.c
      	* modules/colorsel_triangle.c
      	* plug-ins/common/CML_explorer.c
      	* plug-ins/common/scatter_hsv.c
      	* plug-ins/common/sparkle.c
      	* plug-ins/common/vinvert.c
      	* plug-ins/gflare/gflare.c: changed accordingly.
      40916e09
  14. 07 Feb, 2000 1 commit
    • Michael Natterer's avatar
      app/* libgimp/* plug-ins/* did a global s/GUnit/GimpUnit/ and · ef178669
      Michael Natterer authored
      2000-02-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/*
      	* libgimp/*
      	* plug-ins/*
      	* tools/pdbgen/*: did a global s/GUnit/GimpUnit/ and
      	s/GimpSizeEntryUP/GimpSizeEntryUpdatePolicy/
      
      	* libgimp/gimpcolorspace.c: renamed the parameter names to match
      	the names in the header.
      
      	* libgimp/gimphelpui.h
      	* libgimp/gimpimage.c
      	* libgimp/gimpmatrix.h
      	* libgimp/gimpsizeentry.[ch]
      	* libgimp/gimpsizeentry.[ch]
      	* libgimp/gimpunit.[ch]
      	* libgimp/gimpunitmenu.[ch]
      	* libgimp/gimpwidgets.[ch]: added documentation and use g* types
      	all over the place (enables cross-referencing with the glib and
      	gtk+ html documentation).
      
      	* plug-ins/common/exchange.c
      	* plug-ins/common/max_rgb.c: small cleanups.
      
      	* plug-ins/common/mapcolor.c: the color buttons were attached in
      	the wrong order.
      ef178669
  15. 04 Feb, 2000 1 commit
    • Michael Natterer's avatar
      use g* types and name the parameters in the header. · bce26fb3
      Michael Natterer authored
      2000-02-05  Michael Natterer  <mitch@gimp.org>
      
      	* libgimp/gimpcolorspace.[ch]: use g* types and name the
      	parameters in the header.
      
      	* plug-ins/common/CML_explorer.c
      	* plug-ins/common/blur.c
      	* plug-ins/common/newsprint.c
      	* plug-ins/common/nova.c
      	* plug-ins/common/pixelize.c
      	* plug-ins/common/plasma.c
      	* plug-ins/common/randomize.c
      	* plug-ins/common/unsharp.c
      	* plug-ins/gflare/gflare.c
      	* plug-ins/sinus/sinus.c
      	* plug-ins/struc/struc.c: soem more consistency stuff.
      bce26fb3
  16. 30 Jan, 2000 1 commit
  17. 03 Jan, 2000 1 commit
    • Sven Neumann's avatar
      libgimp/gimpcolorspace.c Prefixed all functions with gimp_ to avoid · 3fc4eb84
      Sven Neumann authored
      * libgimp/gimpcolorspace.c
      * libgimp/gimpcolorspace.h: Prefixed all functions with gimp_
        to avoid namespace collisions.
      
      Changed the License in the header to LGPL. If you don't like this,
      please remove those files! (But I would like them to stay since this
      moving those functions into libgimp is something that should have
      happened much earlier.) Nice work, Daniel!
      3fc4eb84
  18. 02 Jan, 2000 1 commit