mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 05:14:45 +00:00
Limited scroll movement (related to feature request #2874441).
This commit is contained in:
parent
b8a39cf8db
commit
36f281a2b7
@ -1107,8 +1107,8 @@ void Editor::editor_request_size(int *w, int *h)
|
||||
JWidget view = jwidget_get_view(this);
|
||||
JRect vp = jview_get_viewport_position(view);
|
||||
|
||||
m_offset_x = jrect_w(vp) - 1;
|
||||
m_offset_y = jrect_h(vp) - 1;
|
||||
m_offset_x = jrect_w(vp)/2 - 1;
|
||||
m_offset_y = jrect_h(vp)/2 - 1;
|
||||
|
||||
*w = (m_sprite->w << m_zoom) + m_offset_x*2;
|
||||
*h = (m_sprite->h << m_zoom) + m_offset_y*2;
|
||||
|
Loading…
Reference in New Issue
Block a user