Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frontends: Fix parameter types in lcd_draw_line #105

Merged
merged 1 commit into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/debug/peanut-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void gb_error(struct gb_s *gb, const enum gb_error_e gb_err, const uint16_t val)
* Draws scanline into framebuffer.
*/
void lcd_draw_line(struct gb_s *gb, const uint8_t pixels[160],
const uint_least8_t line)
const uint_fast8_t line)
{
struct priv_t *priv = gb->direct.priv;

Expand Down
2 changes: 1 addition & 1 deletion examples/mini_fb/peanut_minifb.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void gb_error(struct gb_s *gb, const enum gb_error_e gb_err, const uint16_t val)
* Draws scanline into framebuffer.
*/
void lcd_draw_line(struct gb_s *gb, const uint8_t pixels[160],
const uint_least8_t line)
const uint_fast8_t line)
{
struct priv_t *priv = gb->direct.priv;
const uint32_t palette[] = { 0xFFFFFF, 0xA5A5A5, 0x525252, 0x000000 };
Expand Down
2 changes: 1 addition & 1 deletion examples/sdl2/peanut_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ void manual_assign_palette(struct priv_t *priv, uint8_t selection)
* Draws scanline into framebuffer.
*/
void lcd_draw_line(struct gb_s *gb, const uint8_t pixels[160],
const uint_least8_t line)
const uint_fast8_t line)
{
struct priv_t *priv = gb->direct.priv;

Expand Down
Loading