@@ -302,7 +302,12 @@ unsigned short __inline ARGB2RGB565(int x)
302302 */
303303unsigned short __inline COLORFROMROW (int row )
304304{
305+ //
305306 if (colormode == 0 ){
307+
308+
309+
310+
306311 if (row * (256.0 / SWITCHBLADE_TOUCHPAD_Y_SIZE ) > 0 ){
307312 return ARGB2RGB565 ( (int )
308313 ((int )(256 - (row * (256.0 / SWITCHBLADE_TOUCHPAD_Y_SIZE ) ) ) << 0 ) |
@@ -368,14 +373,19 @@ int visRender(struct winampVisModule *this_mod)
368373 // blkAreaStep - step counter for blank area between bars
369374 // BLK_LIMIT - the limit in pixels for the blank area.
370375 int c = 0 , row = 0 , col = 0 , DIVSCALE = 57 , DIVS = 1 , divCount = 0 , divLimit = 200 , blkAreaStep = 0 , BLK_LIMIT = 3 ;
371- double AMPLITUDE = .36 ;
376+
377+ // Adjust the amplitude based on divLimit values
378+ // .6 works well at divLimit 200
379+ double AMPLITUDE = .6 ;
380+
381+
372382 // step - counter for speed regulation
373383 // rows - limiter for drawing to rows
374384 // rowsDir - direction to move rows
375385 // stepSpeed - speed for redrawing the bars, higher value = lower speed, smoother
376386 // speed - rate of drawing the columns, higher value = faster motion
377387 // note: should be a factor of 576, e.g. 1,2,3,4,6,8,16,18,24, ... 576
378- static int step = 0 , rows = 0 , speed = 16 , rowsDir = 50 , stepSpeed = 2 ;
388+ static int step = 0 , rows = 0 , speed = 32 , rowsDir = 50 , stepSpeed = 2 ;
379389
380390 // stores cached waveform data
381391 int * limitBuffer ;
@@ -397,7 +407,7 @@ int visRender(struct winampVisModule *this_mod)
397407 glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
398408 glLoadIdentity ();
399409
400- // RENDERING CODE GOES HERE
410+ // RENDERING CODE GOES HERE d(-_-)b
401411
402412 // Buffer size--how many pixels in the buffers
403413 sNumPixels = SWITCHBLADE_TOUCHPAD_X_SIZE * SWITCHBLADE_TOUCHPAD_Y_SIZE ;
0 commit comments