Commit 742e1354 authored by Francis Beaudet's avatar Francis Beaudet Committed by Alexandre Julliard

Handle the case when the button is really small.

parent 46570a9d
......@@ -1140,6 +1140,14 @@ static BOOL UITOOLS95_DrawFrameScroll(HDC dc, LPRECT r, UINT uFlags)
int tri = 290*SmallDiam/1000 - 1;
int d46, d93;
/*
* This fixes a problem with really tiny "scroll" buttons. In particular
* with the updown control.
* Making sure that the arrow is as least 3 pixels wide (or high).
*/
if (tri == 0)
tri = 1;
switch(uFlags & 0xff)
{
case DFCS_SCROLLCOMBOBOX:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment