gpmark

view src/blitting.cpp @ 0:5019d031b485

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 05 Jun 2013 22:33:37 +0300
parents
children
line source
1 #include "main.h"
3 void InitBlitting()
4 {
5 }
7 void RunBlitting(int ntime, unsigned short *vram)
8 {
9 unsigned char cc = (ntime & 255) >> 3;
10 unsigned short c = (cc << 11) | ((cc << 1) << 5) | cc;
12 for (int i=0; i<ScreenSize; i++)
13 {
14 *vram++ = c;
15 }
16 }