ERIS CORE

◆ Surface() [2/5]

Surface::Surface ( Surface SubSurfaceFrom,
int16_t  width,
int16_t  height 
)
inline

Definition at line 80 of file ILI9341_t3_ERIS.h.

80  {
81  guid = ((uint32_t)SubSurfaceFrom<<4) * ((uint32_t)width + ((uint32_t)height<<8));
82  w = width;
83  h = height;
84  alloc_size = w*h;
85  if (alloc_size < SURFACE_MIN_ALLOC_SIZE) alloc_size = SURFACE_MIN_ALLOC_SIZE;
86  pSB = SubSurfaceFrom->requestSubSurfaceBufferP(alloc_size);
87  //attempt to allocate a sub surface buffer then clear it
88  /*
89  Serial.print(F("M SubSurface alloted: "));
90  Serial.print(alloc_size);
91  Serial.print(F(" pixels GUID: "));
92  Serial.println(guid);
93  */
94  }
uint32_t alloc_size
uint16_t * pSB
uint16_t w
uint16_t * requestSubSurfaceBufferP(uint32_t size)
uint16_t h
uint32_t guid

References alloc_size, guid, h, pSB, requestSubSurfaceBufferP(), and w.

+ Here is the call graph for this function: