Пример #1
0
void wm_set_apple_prefsize(int scr_x, int scr_y)
{
	
	/* first let us check if we are hardware accelerated and with VRAM > 16 Mo */
	
	if (checkAppleVideoCard()) {
		short top, left, bottom, right;
		
		getMacAvailableBounds(&top, &left, &bottom, &right);
		WM_setprefsize(left +10,scr_y - bottom +10,right-left -20,bottom - 64);
		G.windowstate= 0;
		
	} else {
		
		/* 40 + 684 + (headers) 22 + 22 = 768, the powerbook screen height */
		WM_setprefsize(120, 40, 850, 684);
		G.windowstate= 0;
	}
}
Пример #2
0
static int prefsize(int argc, const char **argv, void *UNUSED(data))
{
	int stax, stay, sizx, sizy;

	if (argc < 5) {
		printf ("-p requires four arguments\n");
		exit(1);
	}

	stax= atoi(argv[1]);
	stay= atoi(argv[2]);
	sizx= atoi(argv[3]);
	sizy= atoi(argv[4]);

	WM_setprefsize(stax, stay, sizx, sizy);

	return 4;
}