Browse Source

Mixer/Spatialization_Console: If screen isn't large enough, use smaller window.

tags/non-daw-v1.2.0
Jonathan Moore Liles 10 years ago
parent
commit
bf232b3928
2 changed files with 17 additions and 3 deletions
  1. +17
    -2
      mixer/src/Spatialization_Console.C
  2. +0
    -1
      mixer/src/Spatialization_Console.H

+ 17
- 2
mixer/src/Spatialization_Console.C View File

@@ -42,17 +42,32 @@
Spatialization_Console::Spatialization_Console ( void ) : Fl_Double_Window( 850, 850 )
{
_resized = false;
_min_width = 100;
label( "Spatialization Console" );

fl_font( FL_HELVETICA, 14 );

int padding = 48;
int S = 802;
panner = new Panner( 25,25, 802,802 );
{
int sx, sy, sw, sh;
Fl::screen_xywh( sx, sy, sw, sh );

if ( sw < 850 || sh < 850 )
{
/* if screen isn't big enough, use smaller version of control */
S = 502;
}
}

panner = new Panner( 25,25, S, S );
panner->callback( cb_panner_value_handle, this );
panner->when( FL_WHEN_CHANGED );

size( S + padding, S + padding );

callback( cb_window, this );
end();



+ 0
- 1
mixer/src/Spatialization_Console.H View File

@@ -42,7 +42,6 @@ class Spatialization_Console : public Loggable, public Fl_Double_Window
static void cb_window ( Fl_Widget *w );

bool _resized;
int _min_width;

int azimuth_port_number;
int elevation_port_number;


Loading…
Cancel
Save