[haiku-commits] Re: haiku: hrev49641 - src/preferences/screensaver

  • From: Adrien Destugues <pulkomandy@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 15 Sep 2015 07:07:57 +0200

float aspectRatio = 4.0f / 3.0f;
// 4:3 monitor
- float previewWidth = 120.0f;
+ float previewWidth = 120.0f * std::max(1.0f, be_plain_font->Size() /
12.0f);
float previewHeight = ceilf(previewWidth / aspectRatio);

The small size of 120x96 was used because it is what BeOS uses, and
there is at least one screen saver known to crash at other sizes (or at
least at 160x120 we were using before).

If we decide to ignore that problem, maybe we could make the base size
160 again, and maybe we could use a 16:9 ratio here.

--
Adrien.

Other related posts: