fix document naming and file dialogs preset, add touch scroll, flip thumbnail, scroll gesture and wheel for sidebar
This commit is contained in:
@@ -1011,7 +1011,8 @@ void ui::Canvas::project_save(std::string data_path)
|
||||
}
|
||||
|
||||
// load thumbnail
|
||||
Image thumb = thumbnail_generate(64, 64);
|
||||
Image thumb = thumbnail_generate(128, 128);
|
||||
thumb.flip();
|
||||
fwrite(&thumb.width, sizeof(int), 1, fp);
|
||||
fwrite(&thumb.height, sizeof(int), 1, fp);
|
||||
fwrite(&thumb.comp, sizeof(int), 1, fp);
|
||||
@@ -1028,7 +1029,7 @@ void ui::Canvas::project_save(std::string data_path)
|
||||
int n_order = m_order[i];
|
||||
fwrite(&n_order, sizeof(int), 1, fp);
|
||||
|
||||
int name_len = m_layers[i].m_name.size();
|
||||
int name_len = (int)m_layers[i].m_name.size();
|
||||
fwrite(&name_len, sizeof(int), 1, fp);
|
||||
fwrite(m_layers[i].m_name.data(), name_len, 1, fp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user