diff options
author | David Robillard <d@drobilla.net> | 2014-03-31 02:40:44 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-03-31 02:40:44 +0000 |
commit | 88b95838210411669973d956a5e84ead2c680d35 (patch) | |
tree | db591bdf6d99aa0abaa941183c3ef876043bcaaf /src/Configuration.cpp | |
parent | 1f22a1e6dce27a9ce1b4ccd434be371994ae14e6 (diff) | |
download | patchage-88b95838210411669973d956a5e84ead2c680d35.tar.gz patchage-88b95838210411669973d956a5e84ead2c680d35.tar.bz2 patchage-88b95838210411669973d956a5e84ead2c680d35.zip |
Save zoom and font size in configuration.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5351 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Configuration.cpp')
-rw-r--r-- | src/Configuration.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Configuration.cpp b/src/Configuration.cpp index 78a66d8..3c4b5f0 100644 --- a/src/Configuration.cpp +++ b/src/Configuration.cpp @@ -37,6 +37,7 @@ Configuration::Configuration() : _window_location(0, 0) , _window_size(640, 480) , _zoom(1.0) + , _font_size(12.0) { _port_colors[JACK_AUDIO] = _default_port_colors[JACK_AUDIO] = 0x244678FF; _port_colors[JACK_MIDI] = _default_port_colors[JACK_MIDI] = 0x960909FF; @@ -176,6 +177,8 @@ Configuration::load() file >> _window_size.x >> _window_size.y; } else if (key == "zoom_level") { file >> _zoom; + } else if (key == "font_size") { + file >> _font_size; } else if (key == "port_color") { std::string type_name; uint32_t rgba; @@ -271,6 +274,7 @@ Configuration::save() file << "window_location " << _window_location.x << " " << _window_location.y << std::endl; file << "window_size " << _window_size.x << " " << _window_size.y << std::endl; file << "zoom_level " << _zoom << std::endl; + file << "font_size " << _font_size << std::endl; file << std::hex << std::uppercase; for (int i = 0; i < N_PORT_TYPES; ++i) { |