Determine frame buffer resolution automagically