mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-05 23:21:22 +00:00
fix. a. warning.
This commit is contained in:
parent
e43f4eff08
commit
8cd54ebe7b
1 changed files with 3 additions and 3 deletions
|
@ -367,7 +367,7 @@ void FurnaceGUI::drawSongInfo() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void FurnaceGUI::drawOrders() {
|
void FurnaceGUI::drawOrders() {
|
||||||
char selID[16];
|
char selID[64];
|
||||||
if (!ordersOpen) return;
|
if (!ordersOpen) return;
|
||||||
if (ImGui::Begin("Orders",&ordersOpen)) {
|
if (ImGui::Begin("Orders",&ordersOpen)) {
|
||||||
float regionX=ImGui::GetContentRegionAvail().x;
|
float regionX=ImGui::GetContentRegionAvail().x;
|
||||||
|
@ -398,14 +398,14 @@ void FurnaceGUI::drawOrders() {
|
||||||
if (oldOrder1==i) ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0,0x40ffffff);
|
if (oldOrder1==i) ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0,0x40ffffff);
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::PushStyleColor(ImGuiCol_Text,uiColors[GUI_COLOR_PATTERN_ROW_INDEX]);
|
ImGui::PushStyleColor(ImGuiCol_Text,uiColors[GUI_COLOR_PATTERN_ROW_INDEX]);
|
||||||
snprintf(selID,16,"%.2x##O_S%.2x",i,i);
|
snprintf(selID,64,"%.2x##O_S%.2x",i,i);
|
||||||
if (ImGui::Selectable(selID)) {
|
if (ImGui::Selectable(selID)) {
|
||||||
e->setOrder(i);
|
e->setOrder(i);
|
||||||
}
|
}
|
||||||
ImGui::PopStyleColor();
|
ImGui::PopStyleColor();
|
||||||
for (int j=0; j<e->getChannelCount(e->song.system); j++) {
|
for (int j=0; j<e->getChannelCount(e->song.system); j++) {
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
snprintf(selID,16,"%.2x##O_%.2x_%.2x",e->song.orders.ord[j][i],j,i);
|
snprintf(selID,64,"%.2x##O_%.2x_%.2x",e->song.orders.ord[j][i],j,i);
|
||||||
if (ImGui::Selectable(selID)) {
|
if (ImGui::Selectable(selID)) {
|
||||||
if (e->getOrder()==i) {
|
if (e->getOrder()==i) {
|
||||||
prepareUndo(GUI_ACTION_CHANGE_ORDER);
|
prepareUndo(GUI_ACTION_CHANGE_ORDER);
|
||||||
|
|
Loading…
Reference in a new issue