wIconValidateIconSize checks the width and height
commit78ff715d39432e44fd57ce91c940ceeaa6b76a23
authorRodolfo García Peñas (kix) <kix@kix.es>
Wed, 14 Nov 2012 18:26:12 +0000 (14 19:26 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 14 Nov 2012 22:48:08 +0000 (14 22:48 +0000)
treeabc6249d8623bc7936530cb335ec36c4e13c7a18
parent5956d71d77fcb76273c6eccaab2347276c04fbcd
wIconValidateIconSize checks the width and height

The function wIconValidateIconSize checks if the width size and height size are
less than the preference size (and left space for the border). If the width
size or height size is greater than the preference, then checks what is the
bigger size of them. Then resize it using the bigger value and holding the
aspect ratio.

Before this patch, wIconValidateIconSize didn't check if height was bigger
than width and always suppose that width was greater than height.
src/icon.c