mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-30 04:20:23 +00:00
Modified default bounds of "palette editor" window.
This commit is contained in:
parent
a5e02323f2
commit
162e3efd97
@ -45,6 +45,7 @@
|
||||
#include "widgets/colview.h"
|
||||
#include "widgets/editor.h"
|
||||
#include "widgets/paledit.h"
|
||||
#include "widgets/statebar.h"
|
||||
#include "sprite_wrappers.h"
|
||||
#include "ui_context.h"
|
||||
|
||||
@ -275,9 +276,13 @@ void PaletteEditorCommand::execute(Context* context)
|
||||
|
||||
if (m_switch || m_open) {
|
||||
if (!jwidget_is_visible(window)) {
|
||||
// Default position
|
||||
// Default bounds
|
||||
window->remap_window();
|
||||
window->center_window();
|
||||
|
||||
int width = MAX(jrect_w(window->rc), JI_SCREEN_W/2);
|
||||
window->setBounds(Rect(JI_SCREEN_W - width - jrect_w(app_get_toolbar()->rc),
|
||||
JI_SCREEN_H - jrect_h(window->rc) - jrect_h(app_get_statusbar()->rc),
|
||||
width, jrect_h(window->rc)));
|
||||
|
||||
// Load window configuration
|
||||
load_window_pos(window, "PaletteEditor");
|
||||
|
Loading…
x
Reference in New Issue
Block a user