Search found 29 matches

by RyouArashi
Thu Jun 25, 2009 8:36 pm
Forum: DS/DSi Development
Topic: [solved] Text Backgrounds
Replies: 10
Views: 9616

Re: Text Backgrounds

For tiles it is 512K on Main BGs and 128K on Sub BGs. Palettes are either stored at BG_PALETTE and BG_PALETTE_SUB (fixed, doesnt have to be mapped) or separate VRAM banks if extended palettes are used (see http://www.dev-scene.com/NDS/NDS_Tutorials_VramTable). If extended palettes are used, every BG...
by RyouArashi
Mon Jun 22, 2009 9:38 am
Forum: DS/DSi Development
Topic: [Solved] Problems using "HomebrewMenu"
Replies: 4
Views: 4623

Re: Problems using "HomebrewMenu"

Thanks for testing. I was also thinking about something being wrong with my installation...

I suspect that theres something wrong on the ARM7 side, e.g. it the ARM7 binary
not being loaded properly or being out of sync or something... But I have no idea how
to check or fix this...
by RyouArashi
Mon Jun 22, 2009 9:26 am
Forum: DS/DSi Development
Topic: displaying raw image
Replies: 2
Views: 1875

Re: displaying raw image

I looked up Bmp BGs in the examples, it is the same code there. Possible Problems might be: - File Access (Check the return values of fatInitDefault, fopen, fread, etc.) - fread may be writing the data to the destination bytewise, however VRAM can only be accessed by 16bit or 32bit reads or writes. ...
by RyouArashi
Fri Jun 19, 2009 12:12 pm
Forum: DS/DSi Development
Topic: [Solved] Problems using "HomebrewMenu"
Replies: 4
Views: 4623

[Solved] Problems using "HomebrewMenu"

I want to use NitroFS in my current project, however my hardware [M3 DS Real + M3Sakura V1.35 USA/Europe] does not support the "argv"-Stuff needed by NitroFS. I have downloaded and modified the HomebrewMenu mentioned in http://forums.devkitpro.org/viewtopic.php?p=2607#p2607 to directly launch anothe...
by RyouArashi
Sat May 16, 2009 7:40 pm
Forum: DS/DSi Development
Topic: OAM Priority
Replies: 1
Views: 1442

Re: OAM Priority

In case you are refering to the "two letters"lib I have in mind:

Have a look into "UpdateOAM" in "Sprite.c".
The sprites are sorted on-the-fly when "extended priorities" are used.
by RyouArashi
Sat May 02, 2009 11:11 am
Forum: DS/DSi Development
Topic: How to get CPU usage?
Replies: 7
Views: 5870

Re: How to get CPU usage?

Nice.

I created separate source and header files for the functions.
Feel free to use them (credit goes to eKid):

http://ryouarashi.ry.funpic.de/cpu_usage.c
http://ryouarashi.ry.funpic.de/cpu_usage.h

RyouArashi
by RyouArashi
Thu Apr 16, 2009 8:36 pm
Forum: DS/DSi Development
Topic: Backgrounds - multiple palettes
Replies: 5
Views: 3289

Re: Backgrounds - multiple palettes

Here some code I'm currently using in my project: I'm using VRAM_F and VRAM_G for Main BG Ext. palettes, VRAM_H for Sub BG Ext. palettes. Video Modes are MODE_0_3D and MODE_0_2D (Main/Sub). BG Ext. palettes enabled for both screens VRAM Inits: // Setup VRAM //vramSetBankA(VRAM_A_LCD); Used by NitroE...
by RyouArashi
Wed Apr 15, 2009 4:34 pm
Forum: DS/DSi Development
Topic: Backgrounds - multiple palettes
Replies: 5
Views: 3289

Re: Backgrounds - multiple palettes

The extended palettes for BGs consist of 4 Slots each (Slot 0-3), one for each Background Layer. Each palette slot can store 16 (IIRC) 256color palettes (selectable via map entry). Basically Slot 0 is for BG0 Slot 1 for BG1 and so on... Theres another trap in the VRAM mapping for VRAM_F and VRAM_G, ...
by RyouArashi
Sun Mar 29, 2009 9:32 pm
Forum: Bug Reports
Topic: libnds: setBrightness
Replies: 5
Views: 4223

libnds: setBrightness

In video.c : //--------------------------------------------------------------------------------- void setBrightness( int screen, int level) { //--------------------------------------------------------------------------------- int mode = 1<<14; if ( level < 0){ level = -level; mode = 2<<14; } if (lev...