Post Reply 
My analysis of the battery icon is done....results
07-03-2017, 05:32 AM (This post was last modified: 07-03-2017 05:37 AM by webmasterpdx.)
Post: #2
RE: My analysis of the battery icon is done....results
I optimized the code.....

Code:
EXPORT BATVAL() // Battery test
BEGIN
LOCAL x:=315,d:=#D6DEDEh;
CASE
IF GETPIX_P(x,14)==d THEN RETURN 0; END;
IF GETPIX_P(x,11)==d THEN RETURN 25; END;
IF GETPIX_P(x,8)==d THEN RETURN 50; END;
IF GETPIX_P(x,6)==d THEN RETURN 75; END;
DEFAULT RETURN 100;
END; // CASE...
END; // BEGIN...
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: My analysis of the battery icon is done....results - webmasterpdx - 07-03-2017 05:32 AM



User(s) browsing this thread: 1 Guest(s)