src/video/null_v.cpp
changeset 6247 7d81e3a5d803
parent 5587 167d9a91ef02
child 6615 74ec6e68e831
equal deleted inserted replaced
6246:75451000349d 6247:7d81e3a5d803
    15 	_screen.height = _cur_resolution[1];
    15 	_screen.height = _cur_resolution[1];
    16 	_null_video_mem = malloc(_cur_resolution[0] * _cur_resolution[1]);
    16 	_null_video_mem = malloc(_cur_resolution[0] * _cur_resolution[1]);
    17 	return NULL;
    17 	return NULL;
    18 }
    18 }
    19 
    19 
    20 static void NullVideoStop(void) { free(_null_video_mem); }
    20 static void NullVideoStop() { free(_null_video_mem); }
    21 
    21 
    22 static void NullVideoMakeDirty(int left, int top, int width, int height) {}
    22 static void NullVideoMakeDirty(int left, int top, int width, int height) {}
    23 
    23 
    24 static void NullVideoMainLoop(void)
    24 static void NullVideoMainLoop()
    25 {
    25 {
    26 	uint i;
    26 	uint i;
    27 
    27 
    28 	for (i = 0; i < 1000; i++) {
    28 	for (i = 0; i < 1000; i++) {
    29 		GameLoop();
    29 		GameLoop();