コード例 #1
0
ファイル: gfx_screen.c プロジェクト: dkoksal/fbc
FBCALL int fb_GfxScreenQB( int mode, int visible, int active )
{

	int res = fb_GfxScreen( mode, 0, 0, 0, 0 );
	if( res != FB_RTERROR_OK )
		return res;

	if( visible >= 0 || active >= 0 )
		return fb_ErrorSetNum( fb_PageSet( visible, active ) );
	else
		return fb_ErrorSetNum( FB_RTERROR_OK );
}
コード例 #2
0
ファイル: gfx_screen.c プロジェクト: KurtWoloch/fbc
FBCALL int fb_GfxScreenQB( int mode, int visible, int active )
{
	FB_GRAPHICS_LOCK( );

	int res = fb_GfxScreen( mode, 0, 0, 0, 0 );
	if( res != FB_RTERROR_OK ) {
		FB_GRAPHICS_UNLOCK( );
		return res;
	}

	if( visible >= 0 || active >= 0 )
		res = fb_ErrorSetNum( fb_PageSet( visible, active ) );
	else
		res = fb_ErrorSetNum( FB_RTERROR_OK );

	FB_GRAPHICS_UNLOCK( );
	return res;
}