Skip to content

Commit

Permalink
Fix bug in GUI showing : instead of . in version text
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-zhao committed Nov 5, 2022
1 parent c93efba commit 2bc7371
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions vgmtool/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -662,10 +662,7 @@ void Gui::load_file(const std::string& filename)
}

// Version
SetDlgItemText(_headerWnd, edtVersion, std::format(
"{}:{:02d}",
_currentFile.header().version().major(),
_currentFile.header().version().minor()).c_str());
SetDlgItemText(_headerWnd, edtVersion, _currentFile.header().version().string().c_str());

// Clock speeds
SetDlgItemInt(_headerWnd, edtPSGClock, _currentFile.header().clock(VgmHeader::Chip::SN76489), FALSE);
Expand Down

0 comments on commit 2bc7371

Please sign in to comment.