Main Menu

Bug or Hardware limitation ? x screen(x mouse) on hires screens

Started by Dan, 13 Apr, 2017, 08:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dan



Screen Open 0,640,256,16,Lowres
Limit Mouse
CH=1


Repeat
   
   MX=X Mouse
   MY=Y Mouse
   SX=X Screen(MX)
   SY=Y Screen(MY)
   Text 0,10,Str$(MX)+" / "+Str$(MY)+"    "
   Text 0,20,Str$(SX)+" <-/ "+Str$(SY)+"    "


   If Mouse Key=1
      X=X+1
      If X=2
         X=0
      End If
   End If
   
   If X=0 and CH=0
      CH=1
      Screen Open 0,640,256,16,Lowres
   End If
   
   If X=1 and CH=1
      CH=0
      Screen Open 0,640,256,16,Hires
   End If
   
Until Mouse Key=2



Once, few years ago (and now while developing the wover game) i'v discovered an annoyance, while grabbing sprites, which were drawn on a hires image.


The x coordinate, while in hires screen, as you can test with the above code, is always at the even number.
That makes it difficult to cut out pixel perfect pictures.


the same is with y screen(y mouse) in laced mode.


this code is tested on amos pro v2.0 and easy amos.




SamuraiCrow

Hardware limit:  sprite coordinates are low resolution on high resolution screens until AGA support is added.

Dan

thanks.


Edit:


Right, then the question comes up:


How does Deluxe paint do the painting in the Hires mode ?

SamuraiCrow

The OS may have more resolution than the Amos hardware banging.