ERIS CORE

◆ bltSurface2FrameBuffer()

void AppWren::bltSurface2FrameBuffer ( int16_t  from_x,
int16_t  from_y,
int16_t  width,
int16_t  height,
int16_t  to_x,
int16_t  to_y,
bltMode  blt_mode 
)
inline

Definition at line 356 of file AppWren.h.

356  {
357  uint16_t *sb = surface_cache->getSurfaceBufferP();
358  Surface source((uint16_t*)(sb + from_x + (from_y * surface_cache->getWidth())),width,height);
359  Surface dest(draw->getFrameBuffer(),SCREEN_WIDTH,SCREEN_HEIGHT);
360 
361  //bltSurface2Surface(Surface *dest, Surface *source,int16_t pos_x,int16_t pos_y,bltMode blt_mode)
362  draw->bltSurface2Surface(&dest,to_x,to_y,&source,from_x,from_y,width,height,blt_mode);
363  }
int16_t height
Definition: AppBaseClass.h:68
ILI9341_t3_ERIS * draw
Definition: AppBaseClass.h:41
int16_t width
Definition: AppBaseClass.h:67
Surface * surface_cache
Definition: AppWren.h:770
void bltSurface2Surface(Surface *dest, int16_t dest_x, int16_t dest_y, Surface *source, int16_t from_x, int16_t from_y, int16_t from_width, int16_t from_height, bltMode blt_mode)
block transfer from source to dest with the given parameters
uint16_t getWidth()
uint16_t * getSurfaceBufferP()
a Surface object manages a memory block with defined width and height dimensions

References ILI9341_t3_ERIS::bltSurface2Surface(), AppBaseClass::draw, Surface::getSurfaceBufferP(), Surface::getWidth(), AppBaseClass::height, surface_cache, and AppBaseClass::width.

Referenced by bltCallback().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: