Skip to content

Commit

Permalink
pico: update for picovision line mode change
Browse files Browse the repository at this point in the history
  • Loading branch information
Daft-Freak committed Sep 29, 2023
1 parent ffe22fa commit 80eb274
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: pimoroni/picovision
ref: dd3415ad2218267d0bd67008effd4f60860e0c22
ref: 03df7694ed4fb396c1d12adf90d0150ada6baedc
path: picovision

- name: Cache
Expand Down
2 changes: 1 addition & 1 deletion 32blit-pico/display_picovision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static void write_frame_setup(uint16_t width, uint16_t height, blit::PixelFormat
int step = std::min(buf_size, height - y);
for(int i = 0; i < step; i++) {
uint32_t line_addr = base_address + (y + i) * width * blit::pixel_format_stride[int(format)];
buf[i] = dv_format << 28 | h_repeat << 24 | line_addr;
buf[i] = dv_format << 27 | h_repeat << 24 | line_addr;
}

ram.write(frame_table_addr, buf, step * 4);
Expand Down

0 comments on commit 80eb274

Please sign in to comment.