projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bg/clr color tweaks, clear borders rework, fc31 depends
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
plugins
/
diffkey
/
diffkey.C
diff --git
a/cinelerra-5.1/plugins/diffkey/diffkey.C
b/cinelerra-5.1/plugins/diffkey/diffkey.C
index e863f593876cbbb425993bc04a1e7c61bb2d51e7..2c0aef77cd537e9d2afcb7c765e59d4615bfff4d 100644
(file)
--- a/
cinelerra-5.1/plugins/diffkey/diffkey.C
+++ b/
cinelerra-5.1/plugins/diffkey/diffkey.C
@@
-218,7
+218,7
@@
void DiffKeyConfig::interpolate(DiffKeyConfig &prev,
DiffKeyThreshold::DiffKeyThreshold(DiffKey *plugin, int x, int y)
DiffKeyThreshold::DiffKeyThreshold(DiffKey *plugin, int x, int y)
- : BC_FSlider(x, y, 0,
200, 200
, 0, 100, plugin->config.threshold)
+ : BC_FSlider(x, y, 0,
xS(200), yS(200)
, 0, 100, plugin->config.threshold)
{
this->plugin = plugin;
}
{
this->plugin = plugin;
}
@@
-238,7
+238,7
@@
int DiffKeyThreshold::handle_event()
DiffKeySlope::DiffKeySlope(DiffKey *plugin, int x, int y)
DiffKeySlope::DiffKeySlope(DiffKey *plugin, int x, int y)
- : BC_FSlider(x, y, 0,
200, 200
, 0, 100, plugin->config.slope)
+ : BC_FSlider(x, y, 0,
xS(200), yS(200)
, 0, 100, plugin->config.slope)
{
this->plugin = plugin;
}
{
this->plugin = plugin;
}
@@
-273,10
+273,10
@@
int DiffKeyDoValue::handle_event()
DiffKeyGUI::DiffKeyGUI(DiffKey *plugin)
: PluginClientWindow(plugin,
DiffKeyGUI::DiffKeyGUI(DiffKey *plugin)
: PluginClientWindow(plugin,
-
320
,
-
100
,
-
320
,
-
100
,
+
xS(320)
,
+
yS(100)
,
+
xS(320)
,
+
yS(100)
,
0)
{
this->plugin = plugin;
0)
{
this->plugin = plugin;
@@
-289,18
+289,20
@@
DiffKeyGUI::~DiffKeyGUI()
void DiffKeyGUI::create_objects()
{
void DiffKeyGUI::create_objects()
{
- int x = 10, y = 10;
+ int xs10 = xS(10), xs38 = xS(38);
+ int ys10 = yS(10);
+ int x = xs10, y = ys10;
BC_Title *title;
add_subwindow(title = new BC_Title(x, y, _("Threshold:")));
BC_Title *title;
add_subwindow(title = new BC_Title(x, y, _("Threshold:")));
- x += title->get_w() + 10;
+ x += title->get_w() +
xs
10;
add_subwindow(threshold = new DiffKeyThreshold(plugin, x, y));
add_subwindow(threshold = new DiffKeyThreshold(plugin, x, y));
- x = 10;
- y += threshold->get_h() + 10;
+ x =
xs
10;
+ y += threshold->get_h() +
ys
10;
add_subwindow(title = new BC_Title(x, y, _("Slope:")));
add_subwindow(title = new BC_Title(x, y, _("Slope:")));
- x += title->get_w() +
10
;
+ x += title->get_w() +
xs38
;
add_subwindow(slope = new DiffKeySlope(plugin, x, y));
add_subwindow(slope = new DiffKeySlope(plugin, x, y));
- x =
10
;
- y += slope->get_h() + 10;
+ x =
xs38
;
+ y += slope->get_h() +
ys
10;
add_subwindow(do_value = new DiffKeyDoValue(plugin, x, y));
add_subwindow(do_value = new DiffKeyDoValue(plugin, x, y));