Updating my Wine tree from CVS today for the first time in a week or so, I
see a problem in an application which has worked perfectly up to now.

The application (which I wrote) has a 'status panel' in the main window
which is actually a dialog box, and includes various controls and list
boxes. Because I want the panel to always be the same size relative to the
main window I do some manipulation on the dialog box parameters before
calling CreateDialogIndirectParam().

Then because I want the font used for the panel to scale according to the
panel size I create a font thus:

  base_units = GetDialogBaseUnits ();
  child_lf.lfHeight = min((client_rect.bottom - client_rect.top) / ((base_units % 32) 
* 4), 
                        (client_rect.right - client_rect.left) / ((base_units % 32) * 
6));
 
Strange maybe, but it works fine in Windoze and was working perfectly under
Wine until this week. Now the font is about 50% too big, making the
application unusable.

I can't see an obvious culprit among the recent CVS commits. Can anyone
suggest where the change might have been introduced?

Dave Pickles

Reply via email to