Skip to content

Commit

Permalink
KOPTContext: Jot down API tweaks to do when bumping all the things
Browse files Browse the repository at this point in the history
  • Loading branch information
NiLuJe committed May 5, 2021
1 parent 1f43fb2 commit 197f283
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ffi/koptcontext.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function KOPTContext_mt.__index:setContrast(contrast) self.contrast = contrast e
function KOPTContext_mt.__index:setDefectSize(defect_size) self.defect_size = defect_size end
function KOPTContext_mt.__index:setLineSpacing(line_spacing) self.line_spacing = line_spacing end
function KOPTContext_mt.__index:setWordSpacing(word_spacing) self.word_spacing = word_spacing end
--- @fixme: Update the APIs to make KOPTContext's language field a const char*, so that we can just pass it a Lua string.
function KOPTContext_mt.__index:setLanguage(language)
self.language = ffi.new("char[?]", #language + 1)
ffi.copy(self.language, language)
Expand Down

0 comments on commit 197f283

Please sign in to comment.