Skip to content

Commit 89d8708

Browse files
committed
Fix combo editor CSet- and T shortcuts
1 parent ce390de commit 89d8708

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/dialog/comboeditor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3444,7 +3444,7 @@ bool ComboEditorDialog::handleMessage(const GUI::DialogMessage<message>& msg)
34443444
case message::MINUSCS:
34453445
{
34463446
if(cmb_tab1) break;
3447-
CSet = (CSet+11)%14;
3447+
CSet = (CSet+13)%14;
34483448
updateCSet();
34493449
return false;
34503450
}

src/zq/gui/seltile_swatch.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ int32_t newg_seltile_proc(int32_t msg,DIALOG *d,int32_t)
2424
}
2525
case MSG_CLICK:
2626
{
27-
if(gui_mouse_b()&1) //leftmouse
27+
int mb = gui_mouse_b();
28+
if(!mb || (mb&1)) //leftmouse
2829
{
2930
if(ptr->getIsMini() && ptr->getMiniOnly()) break;
3031
int32_t f = d->fg;
@@ -42,7 +43,7 @@ int32_t newg_seltile_proc(int32_t msg,DIALOG *d,int32_t)
4243
return D_REDRAW;
4344
}
4445
}
45-
else if(gui_mouse_b()&2) //right mouse
46+
else if(mb&2) //right mouse
4647
{
4748
if(!ptr->getIsMini()) break;
4849
int32_t tw = (ptr ? ptr->getTileWid() : 1);

0 commit comments

Comments
 (0)