You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A function should be added to allow the frontend to provide a pointer to Peanut-GB for it to fill with pixel data. This function could be called at any time.
This could be used by the frontend to enable double buffering.
This could also be used to make Peanut-GB draw each line of pixel data in a surface representing the LCD screen size.
voidlcd_draw_line(structgb_s*gb, constuint8_t*pixels, constuint_fast8_tline)
{
structpriv*p=gb->priv;
SDL_Surface*s=p->surf;
/* "pixels" is already set to a pointer in the SDL surface from a previous * call to gb_set_pixels_ptr, so peanut-gb has already copied pixel data * for the line directly to the surface. *//* Set pointer to pixels for the next line. */gb_set_pixels_ptr(s->pixels+ (LCD_WIDTH*line));
}
The text was updated successfully, but these errors were encountered:
A function should be added to allow the frontend to provide a pointer to Peanut-GB for it to fill with pixel data. This function could be called at any time.
This could be used by the frontend to enable double buffering.
This could also be used to make Peanut-GB draw each line of pixel data in a surface representing the LCD screen size.
The text was updated successfully, but these errors were encountered: