From 29d030cc3ed6ec86b324700ec4d4c2b863154e60 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 14 Feb 2003 08:47:37 +0000 Subject: [PATCH] use an icon smaller than the surface if possible --- src/client.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client.cc b/src/client.cc index f9676e7c..2d7c246a 100644 --- a/src/client.cc +++ b/src/client.cc @@ -1237,9 +1237,9 @@ const Icon *Client::icon(const otk::Size &s) const li = i; } } - if (smallest == 0xffffffff) // didnt find one bigger than us... - return &_icons[li]; - return &_icons[si]; + if (largest == 0) // didnt find one smaller than the requested size + return &_icons[si]; + return &_icons[li]; } void Client::move(int x, int y) -- 2.39.2