Skip to content

Commit

Permalink
Resync w/ FBInk v1.23.2 API
Browse files Browse the repository at this point in the history
  • Loading branch information
NiLuJe committed Mar 25, 2021
1 parent 5be571c commit cacff5a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gofbink/gofbink.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,15 @@ type FBInkState struct {
GlyphWidth uint8
GlyphHeight uint8
IsPerfectFit bool
IsPBSunxi bool
IsKindleLegacy bool
IsKoboNonMT bool
NTXBootRota uint8
NTXRotaQuirk NTXRota
IsNTXQuirkyLandscape bool
CurrentRota uint8
CanRotate bool
CanHWInvert bool
}

// FBInkConfig is a struct which configures the behavior of fbink
Expand Down Expand Up @@ -587,12 +590,15 @@ func (f *FBInk) GetState(cfg *FBInkConfig, state *FBInkState) {
state.GlyphWidth = uint8(stateC.glyph_width)
state.GlyphHeight = uint8(stateC.glyph_height)
state.IsPerfectFit = bool(stateC.is_perfect_fit)
state.IsPBSunxi = bool(stateC.is_pb_sunxi)
state.IsKindleLegacy = bool(stateC.is_kindle_legacy)
state.IsKoboNonMT = bool(stateC.is_kobo_non_mt)
state.NTXBootRota = uint8(stateC.ntx_boot_rota)
state.NTXRotaQuirk = NTXRota(stateC.ntx_rota_quirk)
state.IsNTXQuirkyLandscape = bool(stateC.is_ntx_quirky_landscape)
state.CurrentRota = uint8(stateC.current_rota)
state.CanRotate = bool(stateC.can_rotate)
state.CanHWInvert = bool(stateC.can_hw_invert)
}

// FBprint prints a string to the screen
Expand Down

0 comments on commit cacff5a

Please sign in to comment.