X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fgraphic%2Fgraphic.C;h=8dcdf979833f058a28ec350c75e2e05c4060876a;hb=0df48ad2d876409c5beeae2e21933a728ea76c33;hp=ad2eae77d9dca3fc2d0c18390c559a5b3c513253;hpb=bd570c5fa5f5473b670673368dc30356aa6c43fa;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/graphic/graphic.C b/cinelerra-5.1/plugins/graphic/graphic.C index ad2eae77..8dcdf979 100644 --- a/cinelerra-5.1/plugins/graphic/graphic.C +++ b/cinelerra-5.1/plugins/graphic/graphic.C @@ -40,10 +40,10 @@ // Canvas parameters #define MAJOR_DIVISIONS 7 #define MINOR_DIVISIONS 5 -#define LINE_W4 12 -#define LINE_W3 10 -#define LINE_W2 5 -#define LINE_W1 2 +#define LINE_W4 xS(12) +#define LINE_W3 xS(10) +#define LINE_W2 xS(5) +#define LINE_W1 xS(2) @@ -227,7 +227,7 @@ int GraphicCanvas::button_release_event() return 0; } -#define BOX_SIZE 10 +#define BOX_SIZE xS(10) int GraphicCanvas::freq_to_y(int freq, ArrayList *points, @@ -699,7 +699,7 @@ int GraphicReset::handle_event() GraphicSize::GraphicSize(GraphicGUI *window, GraphicEQ *plugin, int x, int y) - : BC_PopupMenu(x, y, 100, "4096", 1) + : BC_PopupMenu(x, y, xS(100), "4096", 1) { this->plugin = plugin; this->window = window; @@ -766,8 +766,8 @@ GraphicGUI::GraphicGUI(GraphicEQ *plugin) : PluginClientWindow(plugin, plugin->w, plugin->h, - 320, - 200, + xS(320), + yS(200), 1) { this->plugin = plugin; @@ -802,12 +802,12 @@ void GraphicGUI::create_objects() // int y1 = y; add_subwindow(freq_title = new BC_Title(x, y, _("Frequency:"))); x += freq_title->get_w() + margin; - add_subwindow(freq_text = new FreqTextBox(plugin, this, x, y, 100)); + add_subwindow(freq_text = new FreqTextBox(plugin, this, x, y, xS(100))); x += freq_text->get_w() + margin; add_subwindow(level_title = new BC_Title(x, y, _("Level:"))); x += level_title->get_w() + margin; - add_subwindow(value_text = new ValueTextBox(plugin, this, x, y, 100)); + add_subwindow(value_text = new ValueTextBox(plugin, this, x, y, xS(100))); x += value_text->get_w() + margin; add_subwindow(reset = new GraphicReset(plugin, this, x, y)); @@ -1031,8 +1031,8 @@ GraphicEQ::GraphicEQ(PluginServer *server) fft = 0; need_reconfigure = 1; active_point = -1; - w = 640; - h = 480; + w = xS(640); + h = yS(480); } GraphicEQ::~GraphicEQ()