Jump to content
Sign in to follow this  
TXG/MNX

video width

Recommended Posts

Hi

 

We working a an idea and need a wider resolution then 320*240, we like to get 640*240. Where can we change this? Do we need to mod the Jaguar init code or can it be done inside Raptor Basic?

 

Verstuurd vanaf mijn LEX829 met Tapatalk

Share this post


Link to post
Share on other sites

Is it only PWIDTH that needs to be set or do the rest of the display variables also need to be written?

 

Call to witness Zerosquare or Shamus! (or of course anyone else knowing the answer is welcome to reply!)

  • Like 1

Share this post


Link to post
Share on other sites

I had this line for changing pwidth

 

DPOKE VMODE,1735|(7<<9)

 

Pwidth 7 equates to something like 160 wide though. So play with other values in place of the 7.

  • Like 3

Share this post


Link to post
Share on other sites

(This is not tested ; take with a grain of salt :))

 

In theory:

 

HP, HS, HEQ, HVS, HBB, HBE, HDB1, HDB2 and HDE don't need to be modified.

 

VMODE needs to be changed, as Sporadic said above ; it's better to use this to make sure you don't change other bits beside PWIDTH:

DPOKE VMODE, (DPEEK(VMODE) & 511) | (X << 9)

 

For 640 pixels horizontally, X should be 1.

 

I don't know if there are internal things in Raptor (and thus rB+) that rely on the screen width and will break.

CJ would be the best person to ask :)

  • Like 3

Share this post


Link to post
Share on other sites

I'd be massively shocked if messing with screen width didn't break raptor object handling, but it'd be a pleasant surprise :)

Share this post


Link to post
Share on other sites

I'd be massively shocked if messing with screen width didn't break raptor object handling, but it'd be a pleasant surprise :)

 

It will break horizontal edge clipping, but other than that it'll be fine.

 

I'll add a way to change width and reset the edge pointers in the API.

  • Like 4

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...