Support and General Use > Recording
Recording Enhancements Pack
paulheu:
That was not it actually, as it turns out the 'shortcuts' for the agc modes are in the code (line 180 of recording.c)
I just changed them to the full names and that worked just fine. Although I guess these should be in the/from the language file.. but for now I got it working as I like it.. I include the new patch. Now I only have to figure how to use the system font on the remote while the main lcd still uses the custom font..
But sofar so good.. you learn a bit every day.. ;)
EDIT: removed the patch as it is no longer valid..
paulheu:
About the font 'thing' ;D
would this work (use set font on player lcd, system font on remote LCD):
--- Code: --- FOR_NB_SCREENS(i)
{
if (i==0)
screens[i].setfont(FONT_UI);
else
screens[i].setfont(FONT_SYSFIXED);
screens[i].getstringsize("M", &w, &h);
screens[i].setmargins(global_settings.invert_cursor ? 0 : w, 8);
}
--- End code ---
or did I misunderstand the FOR_NB_SCREENS part (as a defined for-next loop of sorts..;) )
Mmmm:
This is from screen_access.h so you can see exactly what FOR_NB_SET_SCREENS(i) does
--- Code: ---#define FOR_NB_SCREENS(i) for(i = 0; i < NB_SCREENS; i++)
--- End code ---
So your assumption was correct! :)
I don't think that your code will work though!
It will store the dimensions for a user font in the variables w and h and then it will store the dimensions for the system font in w & h overwriting the originals. even if this did work you would then have to do a similar thing when calling the peakmeter as it would need the correct h value for the specific screen.
The only way that I can think of to do this using the gui system is to make a new struct for recording.c that contains w and h and possibly also the font settings. That should keep you thinking! ;)
paulheu:
Well, it works for the text, but the peakmeter is in the wrong place (as you expected..)
Oh well. It's fun enough to poke around and figure this stuff out anyway.. :^)
paulheu:
Fixed it!! ..
--- Code: --- FOR_NB_SCREENS(i)
{
if (i==0) {
screens[i].setfont(FONT_UI);
screens[i].getstringsize("M", &w, &h);
screens[i].setmargins(global_settings.invert_cursor ? 0 : w, 8);
}
else {
screens[i].setfont(FONT_SYSFIXED);
screens[i].getstringsize("M", &rc_w, &rc_h);
screens[i].setmargins(global_settings.invert_cursor ? 0 : rc_w, 8);
}
}
--- End code ---
I'm sure there's a better way to do this.. but it's making me proud.. ;D
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version