Skip to content

Commit

Permalink
fix: align streamdeck plus lcd strip drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Nov 18, 2023
1 parent ba64ce5 commit 515cf4a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/device-types/streamdeck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ export class StreamDeckWrapper implements WrappedDevice {

if (this.#deck.LCD_ENCODER_SIZE) {
const encoderSize = this.#deck.LCD_ENCODER_SIZE
const xPad = (encoderSize.width - encoderSize.height) / 2
const xPad = 25
const xProgression = 216.666
this.#queueLcdStrip = new ImageWriteQueue(async (key: number, buffer: Buffer) => {
const outputId = this.#queueOutputId

Expand All @@ -86,7 +87,7 @@ export class StreamDeckWrapper implements WrappedDevice {
this.#hasDrawnLcdStrip = true

try {
await this.#deck.fillLcdRegion(key * encoderSize.width + xPad, 0, newbuffer, {
await this.#deck.fillLcdRegion(key * xProgression + xPad, 0, newbuffer, {
format: 'rgb',
width: encoderSize.height,
height: encoderSize.height,
Expand Down

0 comments on commit 515cf4a

Please sign in to comment.