Minor fix in PaletteView::setBoxSize() to apply the guiscale() to the box size

This commit is contained in:
David Capello 2016-02-24 17:37:36 -03:00
parent ad98fab506
commit 0cf39625f8

View File

@ -1,5 +1,5 @@
// Aseprite
// Copyright (C) 2001-2015 David Capello
// Copyright (C) 2001-2016 David Capello
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@ -200,7 +200,7 @@ int PaletteView::getBoxSize() const
void PaletteView::setBoxSize(int boxsize)
{
m_boxsize = MID(4*guiscale(), boxsize, 32*guiscale());
m_boxsize = MID(4, boxsize, 32)*guiscale();
if (m_delegate)
m_delegate->onPaletteViewChangeSize(m_boxsize / guiscale());