Skip to content

Commit

Permalink
Fix parameter types in lcd_draw_line
Browse files Browse the repository at this point in the history
  • Loading branch information
ccawley2011 authored and deltabeard committed May 30, 2024
1 parent 30ed7ad commit e7e73ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit e7e73ef

Please sign in to comment.