fix selection and cursor

This commit is contained in:
2019-03-09 23:07:06 +01:00
parent f0fed897f6
commit 3af923db96
5 changed files with 57 additions and 25 deletions

View File

@@ -175,6 +175,8 @@ public:
bool m_dirty_face[6] = SIXPLETTE(false);
Layer m_smask; // selection mask
bool m_smask_active = false;
// mode 0=none, 1=free, 2=line
int m_smask_mode = 0;
RTT m_tmp[6];
RTT m_tmp_dual[6];
RTT m_mixer;
@@ -213,7 +215,7 @@ public:
auto prev = I->m_current_mode;
if (I->m_mode)
for (auto& m : *I->m_mode)
m->leave();
m->leave(mode);
I->m_mode = &modes[(int)mode];
I->m_current_mode = mode;
if (I->m_mode)