diff gui/ui/render.c @ 36920:40ad45360c8a

Replace old item 'potmeter' by new item 'pimage'. Recent versions of the X11/GTK GUI didn't allow to control a potmeter, because that didn't seem to make any sense. In order to get rid of the confusing potmeter that doesn't distinguish from a hpotmeter and in order to allow the more useful behaviour recent versions of the X11/GTK GUI have been utilized (and because we're still supporting item 'potmeter' for reasons of compatibility with old skins), introduce new item 'pimage' that reuses most of the current potmeter code. Additionally, remove remaining code and documentation of 'potmeter'.
author ib
date Mon, 17 Mar 2014 12:29:46 +0000
parents e0a0b0846c4e
children 974ee5f5bf44
line wrap: on
line diff
--- a/gui/ui/render.c	Sun Mar 16 13:30:18 2014 +0000
+++ b/gui/ui/render.c	Mon Mar 17 12:29:46 2014 +0000
@@ -358,7 +358,7 @@
             PutImage(&item->Bitmap, item->x, item->y, 3, ofs);
             break;
 
-        case itPotmeter:
+        case itPimage:
 
             if (item->numphases == 1)
                 SimplePotmeterPutImage(&item->Bitmap, item->x, item->y, item->value / 100.0);