remove superfluous ceil()

This commit is contained in:
Robin Gareus 2016-03-15 11:55:44 +01:00
parent 76df2d6e36
commit c8d25f37bc

View File

@ -1247,7 +1247,7 @@ ProcessorEntry::PluginDisplay::on_expose_event (GdkEventExpose* ev)
* -> width changes -> inline-view, fixed aspect ratio -> height changes
* -> scroll bar is removed [-> width changes ; repeat ]
*/
uint32_t shm = std::min (_max_height, (uint32_t) ceil (dis->height));
uint32_t shm = std::min (_max_height, (uint32_t)dis->height);
bool sc = false;
Gtk::Container* pr = get_parent();
for (uint32_t i = 0; i < 4 && pr; ++i) {