mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-27 00:47:43 +01:00
allow compilation on that other platform
This commit is contained in:
parent
ccfc7ba6b2
commit
cb3a6a6dea
1 changed files with 5 additions and 5 deletions
|
|
@ -82,13 +82,13 @@ SessionCloseDialog::on_save (WavesButton*)
|
|||
void
|
||||
SessionCloseDialog::set_top_label (std::string message)
|
||||
{
|
||||
#if defined (PLATFORM_WINDOWS)
|
||||
const size_t character_width = 9; // average width of the one character on Windows
|
||||
#elif defined (__APPLE__)
|
||||
#if defined (__APPLE__)
|
||||
const size_t character_width = 7; // average width of the one character on MacOS
|
||||
#else
|
||||
const size_t character_width = 9; // average width of the one character on other platforms
|
||||
#endif
|
||||
const size_t n_characters_in_line = 400 / character_width; // 400 - size of the label, see session_close_dialog.xml
|
||||
_top_label.set_text ( ARDOUR_UI_UTILS::split_on_lines (message, n_characters_in_line) );
|
||||
const size_t n_characters_in_line = 400 / character_width; // 400 - size of the label, see session_close_dialog.xml
|
||||
_top_label.set_text ( ARDOUR_UI_UTILS::split_on_lines (message, n_characters_in_line) );
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue