mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 04:19:12 +00:00
Minor fix in PaletteView::setBoxSize() to apply the guiscale() to the box size
This commit is contained in:
parent
ad98fab506
commit
0cf39625f8
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user