Jump to content

Mode 0 currupt


Normmatt

Recommended Posts

i coded an input demo today and it uses mode 0 for showing the font and the font is all screwed up in dsemu but not in vba so i figured your mode 0 code is currupt or something

Ok; try running some demos that we both know use mode0, like fontdisp. If they're corrupt, then I'll know I broke something. Otherwise, are you sure your code uses mode0 backgrounds for the font, or are they sprites or something?

Link to comment
Share on other sites

yes it uses mode 0 for the gfx i can post up the dragonbasic code soon well the code which sets the gfx mode is

___________________________________________________________

graphics 0,false

 

enabletiles 0,0,1,TEXT_256x256 + BG_COLOR_16

 

loadfont16 1,font

 

loadpal16 BG_PALETTE,0,pal

___________________________________________________________

Dragonbasic function descriptions

 

GRAPHICS(mode,sprites)

ENABLETILES(bg,screen,char,flags)

LOADFONT16(char,label)

LOADPAL16(palette,index,label)

Edited by Normmatt
Link to comment
Share on other sites

graphics 0,false

enabletiles 0,0,1,TEXT_256x256 + BG_COLOR_16

loadfont16 1,font

loadpal16 BG_PALETTE,0,pal

DBasic, eh. Well, that's your problem isn't it :P

I can never be sure whether a high-level language like BASIC is doing what it says. (Sure that + shouldn't be OR in the second line?) Mind you, maybe it is broken code; I'll check out the mode0 renderer for 256x256/16col in a bit.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...