summaryrefslogtreecommitdiff
path: root/lib/input_handlers.cpp
diff options
context:
space:
mode:
authorJosh Blum2013-02-25 03:16:25 -0800
committerJosh Blum2013-02-25 03:16:25 -0800
commitf07fdbc4b6bc65846438b4923ee3d265ab87a970 (patch)
treee313492d3e07f6efb80f16da418cdb9ba2e491bc /lib/input_handlers.cpp
parent0a8e905e35e181972737862da74143f8852d5300 (diff)
downloadsandhi-f07fdbc4b6bc65846438b4923ee3d265ab87a970.tar.gz
sandhi-f07fdbc4b6bc65846438b4923ee3d265ab87a970.tar.bz2
sandhi-f07fdbc4b6bc65846438b4923ee3d265ab87a970.zip
gras: work on new port config API
combined item size config into port config removed set/get, its just a set by reference, this simplified a lot of client code Commit call will apply the changes at runtime.
Diffstat (limited to 'lib/input_handlers.cpp')
-rw-r--r--lib/input_handlers.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/input_handlers.cpp b/lib/input_handlers.cpp
index 4ca0bdf..e51808b 100644
--- a/lib/input_handlers.cpp
+++ b/lib/input_handlers.cpp
@@ -77,8 +77,8 @@ void BlockActor::handle_input_update(const InputUpdateMessage &message, const Th
//update buffer queue configuration
if (i >= this->input_queues.size()) return;
- const size_t preload_bytes = this->input_items_sizes[i]*this->input_configs[i].preload_items;
- const size_t reserve_bytes = this->input_items_sizes[i]*this->input_configs[i].reserve_items;
- const size_t maximum_bytes = this->input_items_sizes[i]*this->input_configs[i].maximum_items;
- this->input_queues.update_config(i, this->input_items_sizes[i], preload_bytes, reserve_bytes, maximum_bytes);
+ const size_t preload_bytes = this->input_configs[i].item_size*this->input_configs[i].preload_items;
+ const size_t reserve_bytes = this->input_configs[i].item_size*this->input_configs[i].reserve_items;
+ const size_t maximum_bytes = this->input_configs[i].item_size*this->input_configs[i].maximum_items;
+ this->input_queues.update_config(i, this->input_configs[i].item_size, preload_bytes, reserve_bytes, maximum_bytes);
}