src/video/null_v.cpp
branchcpp_gui
changeset 6298 c30fe89622df
parent 5838 9c3129cb019b
child 6719 4cc327ad39d5
equal deleted inserted replaced
6297:4bf29d14edba 6298:c30fe89622df
    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();