Skip to content

Commit

Permalink
kopt: color support (#1836)
Browse files Browse the repository at this point in the history
Note: libk2pdfopt has already been bumped with the necessary changes in a7b40a4.
  • Loading branch information
benoit-pierre committed Jun 24, 2024
1 parent 852f54e commit c75e0e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffi/koptcontext.lua
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ function KOPTContext_mt.__index:getPageDim() return self.page_width, self.page_h
function KOPTContext_mt.__index:getBBox(x0, y0, x1, y1) return self.bbox.x0, self.bbox.y0, self.bbox.x1, self.bbox.y1 end

function KOPTContext_mt.__index:copyDestBMP(src)
if src.dst.bpp == 8 or src.dst.bpp == 32 then
if src.dst.bpp == 8 or src.dst.bpp == 24 or src.dst.bpp == 32 then
k2pdfopt.bmp_copy(self.dst, src.dst)
end
end
Expand Down

0 comments on commit c75e0e5

Please sign in to comment.