-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
50 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- base/gspaint.c.orig 2023-03-27 15:49:35.000000000 +0900 | ||
+++ base/gspaint.c 2023-04-27 19:13:03.000000000 +0900 | ||
@@ -208,6 +208,7 @@ | ||
gs_fixed_rect bbox; | ||
gs_int_rect ibox; | ||
uint width, raster, band_space; | ||
+ uint dev_width, dev_height; | ||
uint height, height2; | ||
gs_log2_scale_point log2_scale; | ||
gs_memory_t *mem; | ||
@@ -223,6 +224,7 @@ | ||
if ((ibox.q.y <= ibox.p.y) || (ibox.q.x <= ibox.p.x)) | ||
return 2; | ||
width = (ibox.q.x - ibox.p.x) << log2_scale.x; | ||
+ dev_width = ibox.q.x << log2_scale.x; | ||
raster = bitmap_raster(width); | ||
band_space = raster << log2_scale.y; | ||
height2 = (ibox.q.y - ibox.p.y); | ||
@@ -232,6 +234,7 @@ | ||
if (height > height2) | ||
height = height2; | ||
height <<= log2_scale.y; | ||
+ dev_height = ibox.q.y << log2_scale.y; | ||
mem = pgs->memory; | ||
mdev = gs_alloc_struct(mem, gx_device_memory, &st_device_memory, | ||
"alpha_buffer_init"); | ||
@@ -244,13 +247,9 @@ | ||
} | ||
gs_make_mem_abuf_device(mdev, mem, dev, &log2_scale, | ||
alpha_bits, ibox.p.x << log2_scale.x, devn); | ||
- mdev->width = width; | ||
- mdev->height = height; | ||
+ mdev->width = dev_width; | ||
+ mdev->height = dev_height; | ||
mdev->bitmap_memory = mem; | ||
- /* Set the horrible hacky flag that tells people that the width/height here | ||
- * have been set for *our* convenience, rather than accurately depicting the | ||
- * size of the device for callers. */ | ||
- mdev->non_strict_bounds = 1; | ||
if ((*dev_proc(mdev, open_device)) ((gx_device *) mdev) < 0) { | ||
/* No room for bits, punt. */ | ||
gs_free_object(mem, mdev, "alpha_buffer_init"); |
15 changes: 0 additions & 15 deletions
15
print/ghostscript/files/patch-ghostscript-gsicc_lcms2.diff
This file was deleted.
Oops, something went wrong.