rbf + startup issues - page 2 - General Discussion and Assistance - CHDK Forum
supplierdeeply

rbf + startup issues

  • 12 Replies
  • 7988 Views
*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: rbf + startup issues
« Reply #10 on: 04 / April / 2011, 06:32:58 »
Advertisements
Attached is a re-write of rbf_font.c for review.
Uses umalloc / ufree for all memory allocation.
Passess uncached addresses to read.
Uses cached addresses for font rendering.
General cleanup, commenting and code optimisation.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: rbf + startup issues
« Reply #11 on: 13 / April / 2011, 05:16:52 »
It is possible that this message has something to do with the changes in rbf_font.c. We have a similar message in German forum for the SX20.

msl
CHDK-DE:  CHDK-DE links

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: rbf + startup issues
« Reply #12 on: 13 / April / 2011, 05:31:10 »
It is possible that this message has something to do with the changes in rbf_font.c. We have a similar message in German forum for the SX20.

msl

Looks like it - will work out what I broke and post a patch  :-[

Edit: Found problem and a patch has been posted to the patch request thread.
In rbf_draw_string_len the line:
        int l = rbf_draw_string(x, y, str, cl);
should be:
        int l = rbf_draw_clipped_string(x, y, str, cl, 0, len);

Phil.
« Last Edit: 13 / April / 2011, 05:41:09 by philmoz »
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal