use an icon smaller than the surface if possible

This commit is contained in:
Dana Jansens 2003-02-14 08:47:37 +00:00
parent 0b466d7136
commit 29d030cc3e

View file

@ -1237,9 +1237,9 @@ const Icon *Client::icon(const otk::Size &s) const
li = i; li = i;
} }
} }
if (smallest == 0xffffffff) // didnt find one bigger than us... if (largest == 0) // didnt find one smaller than the requested size
return &_icons[li]; return &_icons[si];
return &_icons[si]; return &_icons[li];
} }
void Client::move(int x, int y) void Client::move(int x, int y)