예제 #1
0
파일: seg001.c 프로젝트: ecalot/SDLPoP
// seg001:0981
void __pascal far remove_flash() {
	// stub
	if (graphics_mode == gmMcgaVga) {
		set_bg_attr(0, 0);
	} else {
		// ...
	}
}
예제 #2
0
파일: seg001.c 프로젝트: ecalot/SDLPoP
// seg001:0908
void __pascal far do_flash(short color) {
	// stub
	if (color) {
		if (graphics_mode == gmMcgaVga) {
			set_bg_attr(0, color);
			if (color != 0) delay_ticks(2); // give some time to show the flash
		} else {
			// ...
		}
	}
}
예제 #3
0
파일: seg001.c 프로젝트: Falcury/SDLPoP
// seg001:0908
void __pascal far do_flash(short color) {
	// stub
	if (color) {
		if (graphics_mode == gmMcgaVga) {
			reset_timer(timer_2);
			set_timer_length(timer_2, 2);
			set_bg_attr(0, color);
			if (color != 0) do_simple_wait(timer_2); // give some time to show the flash
		} else {
			// ...
		}
	}
}
예제 #4
0
파일: seg001.c 프로젝트: ecalot/SDLPoP
// This flashes the background with the color specified, but does not add delay to show the flash
void do_flash_no_delay(short color) {
	if (color) set_bg_attr(0, color);
}