ERIS CORE

◆ bltFrameBuffer2Surface()

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

365  {
366  uint16_t *sb = surface_cache->getSurfaceBufferP();
367  Surface dest((uint16_t*)(sb + from_x + (from_y * surface_cache->getWidth())),width,height);
368  Surface source(draw->getFrameBuffer(),SCREEN_WIDTH,SCREEN_HEIGHT);
369 
370  //bltSurface2Surface(Surface *dest, Surface *source,int16_t pos_x,int16_t pos_y,bltMode blt_mode)
371  draw->bltSurface2Surface(&dest,to_x,to_y,&source,from_x,from_y,width,height,blt_mode);
372  }
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 bltFBCallback().

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