summaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-09-23 14:40:25 +0000
committerDavid Robillard <d@drobilla.net>2007-09-23 14:40:25 +0000
commit614d86f6582847c056959ab129d2256d2fbd5075 (patch)
tree975f72913cdf93e321b2cb206c91381c1809074f /src/libs
parentf4d6256067e9581e67162dc9516b5ad11c8c0d93 (diff)
downloadingen-614d86f6582847c056959ab129d2256d2fbd5075.tar.gz
ingen-614d86f6582847c056959ab129d2256d2fbd5075.tar.bz2
ingen-614d86f6582847c056959ab129d2256d2fbd5075.zip
Fix some weird liblo problem, probably in a breakey and/or leakey way.
git-svn-id: http://svn.drobilla.net/lad/ingen@768 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/client/OSCEngineSender.cpp2
-rw-r--r--src/libs/gui/NodeModule.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/client/OSCEngineSender.cpp b/src/libs/client/OSCEngineSender.cpp
index cadb962c..78c7ab8c 100644
--- a/src/libs/client/OSCEngineSender.cpp
+++ b/src/libs/client/OSCEngineSender.cpp
@@ -363,7 +363,7 @@ OSCEngineSender::set_port_value(const string& port_path,
port_path.c_str(),
*(float*)data);
} else {
- lo_blob b = lo_blob_new(data_size, data);
+ lo_blob b = lo_blob_new(data_size, (void*)data);
lo_send(_engine_addr, "/ingen/set_port_value", "isb",
next_id(),
port_path.c_str(),
diff --git a/src/libs/gui/NodeModule.cpp b/src/libs/gui/NodeModule.cpp
index 4d7770ba..f9d34af0 100644
--- a/src/libs/gui/NodeModule.cpp
+++ b/src/libs/gui/NodeModule.cpp
@@ -122,7 +122,7 @@ NodeModule::embed_gui(bool embed)
cerr << "Size request: " << r.width << "x" << r.height << endl;
_width = max(_width, (double)r.width);
_height = max(_height, (double)r.height);
- _gui_item->property_width() = _width;
+ _gui_item->property_width() = _width - 2;
_gui_item->property_height() = _height;
_gui_item->raise_to_top();
_ports_y_offset = _height + 2;