mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Better support for different zoom levels in the mini-editor.
This commit is contained in:
parent
536d67566f
commit
b9f8c201c4
@ -96,8 +96,11 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void scrollChanged(Editor* editor) OVERRIDE {
|
void scrollChanged(Editor* editor) OVERRIDE {
|
||||||
// Show the mini editor
|
// Show the mini editor if it wasn't created yet and the user
|
||||||
if (editor->getZoom() > 0) {
|
// zoomed in, or if the mini-editor was created and the zoom of
|
||||||
|
// both editors is not the same.
|
||||||
|
if ((!mini_editor && editor->getZoom() > 0) ||
|
||||||
|
(mini_editor && mini_editor->getZoom() != editor->getZoom())) {
|
||||||
// If the mini frame does not exist, create it
|
// If the mini frame does not exist, create it
|
||||||
if (!mini_editor_frame)
|
if (!mini_editor_frame)
|
||||||
create_mini_editor_frame();
|
create_mini_editor_frame();
|
||||||
|
Loading…
Reference in New Issue
Block a user