From 25eaa3fbd2004d90bcd5da51f968cf8d0fc4c2fd Mon Sep 17 00:00:00 2001 From: Darks Date: Wed, 27 Apr 2016 00:52:39 +0200 Subject: [PATCH] Added a ML_background function. This is faster than an ML_bmp_or call. --- MonochromeLib.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/MonochromeLib.c b/MonochromeLib.c index f6b9720..3e2219a 100755 --- a/MonochromeLib.c +++ b/MonochromeLib.c @@ -1284,3 +1284,15 @@ void ML_bmp_16_xor_cl(const unsigned short *bmp, int x, int y) } #endif +#ifdef ML_BACKGROUND +void ML_background(const unsigned char* back) +{ + int i; + char *vram = ML_vram_adress(); + + for(i = 0; i < 1024; i++) + { + vram[i] = back[i]; + } +} +#endif