Robots w/Lasers

April 10, 2006

libpng defeated!

Hah! Turned out there were two problems with libpng on the nds:1. png_zalloc(), which allocates memory for zlib, was refusing to allocate any memory, thinking it was too much. I just removed that check and it works. Boy this was annoying to track down.
2. I forgot a FAT_fclose() in there, so the file was 0 bytes (since it never got flushed to disk)

Latest update — now no more confusion over .bin or .rle, since it directly spits out png’s!

my drawing test
Filed under: Draw,Nintendo DS — davr @ 10:11 pm


  1. Yay! for some reason no more gaps! Also it didn’t matter if they were fast or slow, light or hard, the gaps appeared in 90% of lines I drew in R6… but now in R7 they only appear on about 5% of the lines! GJ whatever you did 🙂

    To celebrate, I drew a lil more featured pic…

    Keep up the good work! (Please oh please add in a swatch for black and white… it’s so hard to select 0,0,0 and 31,31,31)

    dragon thing

    Comment by iganokage — April 11, 2006 @ 3:24 am

  2. nice one 😉 working perfectly with Supercard SD 😀 thanks for this app ^^

    Comment by PoUpA — April 11, 2006 @ 7:12 am

  3. Here’s one posted by Lynx: island

    Comment by davr — April 11, 2006 @ 8:07 am

  4. Here’s one posted by LiraNuna: pimpmobile

    Comment by davr — April 11, 2006 @ 8:18 am

  5. Can’t get it to work on Supercard CF– the top screen with instructions loads, but the bottom screen remains black and undrawable. Looks cool though!

    Comment by digicide — April 11, 2006 @ 11:02 am

  6. To digicide:
    Can you tell me the last few lines of text on the top screen?
    There should be a line “fat…OK” and then below it, some lines like “Line Size: 1” and “Color: …”

    Comment by davr — April 11, 2006 @ 11:28 am

  7. Wowow! Nice! Those lines are quite smooth, nice job. How far are going to push this project?? It would be nice to have some more tools…. u_uU

    Comment by doup — April 12, 2006 @ 7:09 am

  8. Yeah, my top screen’s text ends with

    L – color picker

    X – save to img.png (best)

    FAT. . .

    then the rest of both screens is black.

    Comment by digicide — April 12, 2006 @ 9:35 am

  9. Hmm…I had reports from other people as well who say it doesn’t work on Supercard CF. I’ll have to look into it…it seems to be a problem with the fat lib, since it is failing in FAT_InitFiles().

    For now, here are two more images:

    o rly

    Comment by davr — April 12, 2006 @ 10:55 am

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress

Bad Behavior has blocked 1081 access attempts in the last 7 days.