[MPlayer-dev-eng] [PATCH] GUI: Implement a true rotary potmeter

Ingo Brückl ib at wupperonline.de
Thu Apr 3 16:35:24 CEST 2014


I wrote on Thu, 03 Apr 2014 08:59:47 +0200:

> I'm going to make some source changes now in order to prepare it.

Here is an elaborated version of the patch working in radian now which saves
some operations and makes it easier to understand (e.g. when looking up atan2
and radian in the wiki).

You can already test with the plastic skin when setting the required data
using

  static void g (guiItem *item)
  {
    double end;
    item->zeropoint = appRadian(item, 48, 52);
    end = appRadian(item, 60, 25);
    item->arclength = end - item->zeropoint;
    if (item->arclength <= 0.0) item->arclength += 2 * M_PI;
  }

and g(item) right after case itRPotmeter in main.c.

Comments?

Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rpot.patch
Type: text/x-diff
Size: 4065 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20140403/4fa6f910/attachment.bin>


More information about the MPlayer-dev-eng mailing list