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.