mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 15:32:38 +00:00
Select correct ink type in InkTypeField
This commit is contained in:
parent
d780e90784
commit
30e26e2a3a
@ -282,7 +282,14 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void setInkType(InkType inkType) {
|
void setInkType(InkType inkType) {
|
||||||
setSelectedItemIndex((int)inkType);
|
int index = 0;
|
||||||
|
|
||||||
|
switch (inkType) {
|
||||||
|
case kDefaultInk: index = 0; break;
|
||||||
|
case kPutAlphaInk: index = 1; break;
|
||||||
|
}
|
||||||
|
|
||||||
|
setSelectedItemIndex(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user