Quote:
Regards knob |
Of course, you can load as many fonts as you wish, different sizes, faces, styles. My drawing function just require offset to the resource file where the binary font is stored. I made a special format for this font, to speed up the loading. I will release a tool for converting fonts into my format (is 99% done). Though it's not native. It converts exported font from AngelCode Bitmap Font Generator (a freeware tool which generates bitmap fonts from system TrueType fonts). In my tool you just open exported font, and it creates one bin file which you can add to RKP resources and its done.
I created this thinking of RTF reader where I could convert a bunch of different fonts and sizes so there will be no problem for displaying formatted text - while I change the offset to different font it will draw it as normal, without any special config (all necessary info is stored in binary font ex. widths of chars, line-height and such). |
Quote:
Possible improvements: scroll bars, the ability to open folders; and (maybe) the ability to select the image files and open them - it'll be the good base for document viewer's dialog. |
Yes, that's what I am working on :-) I want to release really well working package as a good start for developing fully functional applications. I just need a little more time and I will upload it here on this very site. I know my first challenge in this will be RTF reader, I hope that other people will also find it interesting and use it in creating their own apps ;-)
|
Quote:
I hope this patch will helps you: *** C:\Program Files\RockTools\RockCompiler\sdspI\bin>fc /b sdopt.exe.bak sdopt.exe Comparing files sdopt.exe.bak and SDOPT.EXE 0001FEE0: 55 90 0001FEE1: 8B 90 0001FEE2: EC 90 0001FEE3: 51 90 0001FEE4: 51 90 0001FEE5: 8D 90 0001FEE6: 45 90 0001FEE7: F8 90 0001FEE8: 50 90 0001FEE9: FF 90 0001FEEA: 15 90 0001FEEB: 10 90 0001FEEC: 52 90 0001FEED: 4A 90 0001FEEE: 00 90 0001FEEF: 8B 90 0001FEF0: 45 90 0001FEF1: F8 90 0001FEF2: 8B 90 0001FEF3: 4D 90 0001FEF4: FC 90 0001FEF5: 6A 90 0001FEF6: 00 90 0001FEF7: 05 90 0001FEF8: 00 90 0001FEF9: 80 90 0001FEFA: C1 90 0001FEFB: 2A 90 0001FEFC: 68 90 0001FEFD: 80 90 0001FEFE: 96 90 0001FEFF: 98 90 0001FF00: 00 90 0001FF01: 81 90 0001FF02: D1 90 0001FF03: 21 90 0001FF04: 4E 90 0001FF05: 62 90 0001FF06: FE 90 0001FF07: 51 90 0001FF08: 50 90 0001FF09: E8 90 0001FF0A: B2 90 0001FF0B: 37 90 0001FF0C: 00 90 0001FF0D: 00 90 0001FF0E: 8B 90 0001FF0F: 4D 90 0001FF10: 08 90 0001FF11: 85 90 0001FF12: C9 90 0001FF13: 74 90 0001FF14: 02 90 0001FF15: 89 90 0001FF16: 01 90 *** |
Quote:
DSTATUS disk_initialize (BYTE disk) { write_mem(CLOCK_PWRCON,read_mem(CLOCK_PWRCON) | 0x4); printf("disk_initialize(%d)\n",disk); return RES_OK; } before work with SD |
I used that mem addres for this:
#define RUN_FROM_SD (read_mem(CLOCK_PWRCON)&0x04)>>2 if run from sd, its value is 1, if from flash its 0. What does your function do? Because all I need is to check from which drive it has been initialized (and my function above does it). If from flash, it shows my warning message or something like that btw, what does this patch do? It takes off the license check or something? |
Quote:
file ff.c : #if _USE_LFN if (fno->lfname) { TCHAR *tp = fno->lfname; WCHAR w, *lfn; i = 0; if (dj->sect /* && (dj->lfn_idx != 0xFFFF) */ ) {/* Get LFN if available */ lfn = dj->lfn; while ((w = *lfn++) != 0) { /* Get an LFN char */ |
Quote:
|
Quote:
Also, it runs so much faster if run from flash! Awesome, you re good. Maybe you have some ideas about flash memory then? |
| All times are GMT -7. The time now is 7:34 am. |
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 RC 2