Skip to content

Commit

Permalink
Merge pull request #10 from trapexit/woffset
Browse files Browse the repository at this point in the history
Fix woffset10 calculation
  • Loading branch information
trapexit authored Sep 8, 2022
2 parents 4b81c77 + 52ad767 commit 2ca065b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subcmd_to_cel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ namespace l
if(celtype_.lrform)
ccc_.ccb_PRE1 |= PRE1_LRFORM;
ccc_.ccb_PRE1 |= PRE1_TLLSB_PDC0;
ccc_.ccb_PRE1 |= (((w_ / (sizeof(uint32_t)/sizeof(uint16_t))) - PRE1_WOFFSET_PREFETCH) << PRE1_WOFFSET10_SHIFT);
ccc_.ccb_PRE1 |= (((w_ / (sizeof(uint32_t)/(celtype_.bpp / 8))) - PRE1_WOFFSET_PREFETCH) << PRE1_WOFFSET10_SHIFT);

ccc_.ccb_Width = w_;
ccc_.ccb_Height = h_;
Expand Down

0 comments on commit 2ca065b

Please sign in to comment.