ERIS CORE

◆ bltSurface2Surface()

void AppWren::bltSurface2Surface ( 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 383 of file AppWren.h.

383  {
384  uint16_t *sb = surface_cache->getSurfaceBufferP();
385  Surface dest((uint16_t*)(sb + from_x + (from_y * surface_cache->getWidth())),width,height);
386  Surface source((uint16_t*)(sb + from_x + (from_y * surface_cache->getWidth())),width,height);
387 
388  //bltSurface2Surface(Surface *dest, Surface *source,int16_t pos_x,int16_t pos_y,bltMode blt_mode)
389  draw->bltSurface2Surface(&dest,to_x,to_y,&source,0,0,source.getWidth(),source.getHeight(),blt_mode);
390  }
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::getHeight(), Surface::getSurfaceBufferP(), Surface::getWidth(), AppBaseClass::height, surface_cache, and AppBaseClass::width.

+ Here is the call graph for this function: