t

Dependencies:   DM_FATFileSystem DM_HttpServer DM_USBHost EthernetInterface USBDevice mbed-rpc mbed-rtos

Fork of DMSupport by Embedded Artists

Revision:
31:d47cffcb0a3e
Parent:
22:1a58a518435c
Child:
39:e1cb4dd9bfeb
--- a/Display/BiosDisplay.cpp	Mon Jan 26 15:24:15 2015 +0100
+++ b/Display/BiosDisplay.cpp	Tue Feb 17 10:41:48 2015 +0100
@@ -164,6 +164,14 @@
   return NULL;
 }
 
+void* BiosDisplay::allocateFramebuffers(uint32_t num, Display::Resolution res)
+{
+  if (_initialized && num>0) {
+    return malloc(fbSize()*num);
+  }
+  return NULL;
+}
+
 void BiosDisplay::setFramebuffer(void* buff)
 {
   LPC_LCD->UPBASE = (uint32_t)buff;