コード例 #1
0
ファイル: main.cpp プロジェクト: marcochiang/RoyalCrowns
/*
 * This is the interrupt service routine called when the resize screen 
 * signal is captured.
 */
void detectResize(int sig) {
	// update the display class information with the new window size
	gameDisplay.handleResize(sig);
	// re-enable the interrupt for a window resize
	signal(SIGWINCH, detectResize);
	/*INSERT YOUR OWN SCREEN UPDATE CODE instead of stub_PrintResize*/
	stub_PrintResize();
}