EASy68K  
It is currently Wed Nov 22, 2017 8:22 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Aug 05, 2010 8:41 pm 
Offline

Joined: Mon Dec 27, 2004 11:40 pm
Posts: 318
Setting windowed or full screen mode sometimes changes the window size.

E.g. If you set a window size then set windowed mode then set another window size and set windowed mode again the window reverts to the earlier size.

Code:
      ORG   $1000

start
      MOVE.l      #$028001E0,d1           * set 640 x 480
      MOVEQ       #33,d0                  * get/set window size
      TRAP        #15

      MOVEQ       #1,d1                   * set windowed mode
      MOVEQ       #33,d0                  * get/set window size
      TRAP        #15

      MOVE.l      #$03200258,d1           * set 800 x 600
      MOVEQ       #33,d0                  * get/set window size
      TRAP        #15

      MOVEQ       #1,d1                   * set windowed mode
      MOVEQ       #33,d0                  * get/set window size
      TRAP        #15

      NOP

      END         start

In this example the window ends up as 640 x 480 not 800 x 600 as you would expect.

Lee.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 07, 2010 2:01 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1049
Thanks Lee,

Corrected in Sim68K v5.6.2

_________________
Prof. Kelly


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google Adsense [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group