OnionUI / Onion

OS overhaul for Miyoo Mini and Mini+
https://onionui.github.io
GNU General Public License v3.0
3.17k stars 190 forks source link

Charging Battery screen only animating 6 frames #30

Closed varkanoid closed 1 year ago

varkanoid commented 1 year ago

Checklist

Onions OS Version

3.12.3

Miyoo Firmware Version

202204190828

Provide a clear and concise description of the issue

As mentioned here https://www.reddit.com/r/MiyooMini/comments/vlfco3/longer_charge_screen_animation_thanks_to/ and here https://www.reddit.com/r/MiyooMini/comments/vkv2o4/comment/idurr0o/?utm_source=share&utm_medium=web2x&context=3

Sichroteph created a new chargingstate file to allow 20 frames instead of 6 but it is still playing only 6 frames.

"ONION V3.12 or Later this file is not needed as it will have these changes already."

Steps to Reproduce

I have created chargeState0.png to chargeState19.png files for my animation. Its only playing 0-5 files. I used the native chargestate file with 3.12.3 and also the one on the link in the google drive but both just allow 6 frames to be played. Also tried the one from the 3.12.0 to 3.12.3 patch and thats the same.

Provide any additional context or information that may help us investigate your issue

Looked at the src file in 3.12.3 and it only shows 6 images not 20.

SDL_Surface* video = SDL_SetVideoMode(640,480, 32, SDL_HWSURFACE);
SDL_Surface* screen = SDL_CreateRGBSurface(SDL_HWSURFACE, 640,480, 32, 0,0,0,0);

SDL_Surface* image0 = IMG_Load("chargingState0.png");
SDL_Surface* image1 = IMG_Load("chargingState1.png");
SDL_Surface* image2 = IMG_Load("chargingState2.png");
SDL_Surface* image3 = IMG_Load("chargingState3.png");
SDL_Surface* image4 = IMG_Load("chargingState4.png");
SDL_Surface* image5 = IMG_Load("chargingState5.png");

SetBrightness(8);
int run = 1;
Olywa commented 1 year ago

It sounds like the update may not have made it to the release (I will check and see if we can get it into the next one), but that doesn't explain why when adding the shared file manually, you still cannot get it to work.

Can you confirm for me that this is the DL link and file you are trying with?

Sichroteph commented 1 year ago

I think there is a confusion. I made a custom keymon in order to make the charging screen displaying the frames for a longer time. I believe another user made one with more frames but it wasn't me.

varkanoid commented 1 year ago

Thanks, I got the chargestate file that plays 20 frames now from another OS. Works a treat.