MoonPhase 1.2 : Эльфы : Форум

Страница 3 из 10: « 1 2 [3] 4 5 6 7 ... 10 »

 jamesbond22:
16.11.08, 22:53
 eddmund,
I add this:
#define PHONE_IN_STBY_EVENT 0x84C
Value 0x84C i get from file W880_R8BA024.h.
then i compiled file dyn_const.bin.

Now elf work!

Below attached newest file dyn_const.bin for W850 R1KG001.

Прикрепленный к сообщению файл:

DYN_CONST_W850.zip DYN_CONST_W850.zip (0.86 kb; 14 hits) Скачать файл

 eddmund:
17.11.08, 00:01
 jamesbond22,

excellent solved!

In the next release of MoonPhase, I plan to check for the presence of the PHONE_IN_STBY_EVENT constant and quit the Elf with a message on absence.

 kirpeace:
17.11.08, 02:57
 above value define PHONE_IN_STBY_EVENT 0x84C working for w610 too

Прикрепленный к сообщению файл:

DYN_CONST_w610.zip DYN_CONST_w610.zip (0.83 kb; 12 hits) Скачать файл

 mousex:
17.11.08, 19:09
 0x84C is in fact STANDBY_IDLE_EVENT 0x84C, the DB2020 equal to PHONE_IN_STBY_EVENT. So, eddmund, you can simply use STANDBY_IDLE_EVENT on DB2020 phones and need no check and quit.

 dimmss:
17.11.08, 19:56
 Какой смысл от этого эльфа? :-?

 mousex:
17.11.08, 20:52
 dimmss: MoonPhase displays an image of the current moon phase on the standby screen.

 eddmund:
17.11.08, 23:17
 mousex пишет:
0x84C is in fact STANDBY_IDLE_EVENT 0x84C, the DB2020 equal to PHONE_IN_STBY_EVENT. So, eddmund, you can simply use STANDBY_IDLE_EVENT on DB2020 phones and need no check and quit.

MoonPhase 0.5 which I have just released, no longer needs the "DYN_CONST.bin" file to mess up with.

The DYN_CONST.bin currently uses two different constant names for the same value - STANDBY_IDLE_EVENT and PHONE_IN_STBY_EVENT. They are absolutely the same, but some have either one of them, others both defined. These "doubles" make no sense at all, but only add confusion.

MoonPhase 0.5 simply assigns the value 0x84C to the constant on DB2020 phones, otherwise 0x7B6.

Edit 2008-11-18:

I have now recognized that the constant for the Standby Mode event has nothing to do with the platform (DB2020 or not)! Another mystery that is flying around...

In MoonPhase 0.6, I now again read the value out of the "DYN_CONST.bin" file, but look at both possible constant names: In the current official ElfPack SVN, 20 models are supported. Most of them (15) have the STANDBY_IDLE_EVENT constant defined. The remaining 5 models have PHONE_IN_STBY_EVENT defined. So I first check if STANDBY_IDLE_EVENT is defined. If it isn't, I check if PHONE_IN_STBY_EVENT is defined and use that value instead. If that constant should also not be defined, MoonPhase tells you and quits.

In terms of code, it looks like:

Код: 
  event_in_standby_mode = STANDBY_IDLE_EVENT;
  if (event_in_standby_mode >= 0xFFFFFFFF) {
    event_in_standby_mode = PHONE_IN_STBY_EVENT;
  }
  if (! checkDynConstEvent(event_in_standby_mode, (wchar_t*)L"PHONE_IN_STBY_EVENT")) {
    FreeBook(myBook);
    return 1;
  }


[ Edited by eddmund в 19.11.08 13:49 ]

 kirpeace:
18.11.08, 03:24
 50% means full moon?

 eddmund:
18.11.08, 04:16
 kirpeace,

yes, 50% (180°) = full Moon in DayDis versions < 1.1 (new Moon -> full Moon -> new Moon = 0 -> 50 -> 100 %).

Starting with DayDis 1.1, the displayed percentage shows the visible illuminated Moon area (new Moon -> full Moon -> new Moon = 0 -> 100 -> 0 %).

[ Edited by eddmund в 4.12.08 17:48 ]

Прикрепленный к сообщению файл:

MoonPhase-0-25-50-75-100%.png MoonPhase-0-25-50-75-100%.png (11.07 kb; 32 hits) Скачать файл

 zhero:
19.11.08, 23:54
 I have a problem with the elf really puts the image in SleepMode?? that the version 0.8 can be said that I could correct?? sorry for my english :-o

[ Редактировано zhero в 19.11.08 14:56 ]

[ Редактировано zhero в 19.11.08 14:59 ]
Страница 3 из 10: « 1 2 [3] 4 5 6 7 ... 10 »

URL этой темы:
https://mobilefree.justdanpo.ru/newbb_plus/viewtopic.php?topic_id=3512&start=20

© 2005-2018 supertrubka.org