summaryrefslogtreecommitdiff
path: root/base/gxclip2.c
Commit message (Collapse)AuthorAgeFilesLines
* Update postal address in file headersChris Liddell2023-04-041-3/+3
|
* Correct various tile phase calculations.Robin Watts2021-11-241-2/+2
| | | | | Rather than using %, use imod, which behaves better in the presence of negative numbers.
* Remove map_color_rgb_alpha.Robin Watts2021-06-181-1/+0
| | | | | | No one ever implements any non-default version. We have no mechanism for writing non full-alpha pixels, so why have a mechanism for reading it out?
* Strip out map_rgb_alpha_color.Robin Watts2021-06-181-1/+0
| | | | No longer used.
* Remove get_bits in favour of get_bits_rectangle.Robin Watts2021-05-031-1/+0
|
* Remove unused get_band device proc.Robin Watts2021-04-281-1/+0
|
* Remove strip_copy_rop in favour of strip_copy_rop2.Robin Watts2021-04-281-30/+0
|
* Split initialize device proc into two.Robin Watts2021-04-261-5/+5
| | | | | | | | | | | | | | | | | The device initialize function currently performs 2 jobs. Firstly, it fills out the device_procs. Secondly, it performs any minimal initialization required by the device (typically none). At various points in the code we want to be able to copy procs from one 'prototype' device to another, so we call initialize for that. This populates the device procs, but does other work that typically requires a 'derived device' structure rather than a vanilla gx_device to work in. Accordingly, we split the job into two; initialize_device_procs (the first part) and initialize_device (the second part). The initialize_device_procs function will set up the initialize_device function pointer along with the rest if required.
* Move devices away from begin_image to begin_typed_image.Robin Watts2021-04-231-1/+0
|
* Remove image_data/end_image dev_procs.Robin Watts2021-04-201-2/+0
|
* Rename create_compositor to composite.Robin Watts2021-04-201-1/+1
|
* Remove obsolete copy_rop dev_proc.Robin Watts2021-04-201-1/+0
|
* Remove obsolete tile_rectangle dev_proc.Robin Watts2021-04-201-1/+0
|
* Remove obsolete get_xfont_{procs,device} device proc.Robin Watts2021-04-201-2/+0
|
* Remove obsolete draw_line dev_proc.Robin Watts2021-04-201-1/+0
|
* Further rationalisation of device init.Robin Watts2021-04-201-3/+2
| | | | | | | | | | Move the initialize procedure out of the device procs table, and into a bare function pointer at the start of the device proc. Devices just initialise this, and the rest should fall into place. This means changes to the device instantion macros (and all the uses thereof), but makes the code nicer overall. In particular, this removes the vestigial 'static_procs' structure.
* Move devices away from static init of procs.Robin Watts2021-04-201-73/+71
|
* Rename finish_copydevice to initialize, and remove second param.Robin Watts2021-04-201-1/+1
| | | | | | | | | | | It used to be that finish_copydevice(dev, const old_dev) would be used to copy stuff from a prototype to a new instance of a device. Now, no copying is ever done. Also, it's a confusing name. Rename it to be 'initialize', which is clearer. Also, it should become even more appropriate in future, if we have this function be the one that is responsible for filling out the procs.
* Update copyright to 2021Chris Liddell2021-03-151-1/+1
|
* Strip trailing whitespace from .c and .h files.Robin Watts2020-09-091-3/+3
|
* lgtm.com fixes: Multiplication of narrow type in wider context.Robin Watts2020-05-151-1/+1
|
* Update copyright to 2020Chris Liddell2020-04-101-1/+1
|
* Update source/header file copyright notice to 2019Chris Liddell2019-01-161-1/+1
|
* Update copyright notice with new head office address.Ken Sharp2018-01-301-3/+3
| | | | | | | | | Also update copyright dates. Remove gs_cmdl.ps as we no longer use it, and remove its entry from psfiles.htm. Remove xfonts.htm as this feature (xfont support) is long, long gone.
* Make gs_imager_state == gs_state.Chris Liddell2016-06-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change how gstate initialisation is done: Previously we relied on the imager state being a subset of the gstate (thus assigning an imager state to a graphics state over wrote to the entries common to both, and didn't overwrite any already set graphics state specific entries). Making the imager and graphics states the same means that approach doesn't work, so this changes it to initialise the entries individually. Renames gsistate.c->gsgstate.c and gxistate.h->gxgstate.h Cleanup and fix the gs_state gc stuff. Uses different check for pre/post clist pdf14 device Previously, the code used "is_gstate" in the imager/graphics state object to determine if the code was being called pre or post clist (post clist would only ever have had an imager_state so is_gstate = false). With no imager state any more, that test would no longer work (and I am dubious about whether it was really safe, anyway). Other places check for the presence of a clist reader device in the pdf14 device structure - so use that here too. Adds initial (NULL) value for show_gstate pointer in gs_state. Removes the now pointless macro for the contents of the graphics state Changes function names that had "imager" to use "gstate" Removes the redundant 'is_state' flag Cleans up gs_(g)state_putdeviceparams(): Previously we had to similar routines: one took a graphics state, and used the device from the graphics state, the other took an imager state and the device as an explicit parameter. With the removal of the imager state, "merge" those two functions Replaces gs_state with gs_gstate It makes for less confusion as it really is a g(raphics)state
* Commit of build_consolidation branchChris Liddell2015-07-201-0/+458
Squashed into one commit (see branch for details of the evolution of the branch). This brings gpcl6 and gxps into the Ghostscript build system, and a shared set of graphics library object files for all the interpreters. Also, brings the same configuration options to the pcl and xps products as we have for Ghostscript.