Ultimate Amiga

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Bug or Hardware limitation ? x screen(x mouse) on hires screens  (Read 3951 times)

0 Members and 1 Guest are viewing this topic.

Dan

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 4
  • Amos Fan

Code: [Select]

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.



Logged

SamuraiCrow

  • compile-time wierdo
  • Forum Mod
  • A1200
  • *****
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 946
  • Compile-time wierdo
Re: Bug or Hardware limitation ? x screen(x mouse) on hires screens
« Reply #1 on: April 13, 2017, 10:34:02 PM »

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

Dan

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 4
  • Amos Fan
Re: Bug or Hardware limitation ? x screen(x mouse) on hires screens
« Reply #2 on: April 14, 2017, 02:02:51 PM »

thanks.


Edit:


Right, then the question comes up:


How does Deluxe paint do the painting in the Hires mode ?
« Last Edit: April 14, 2017, 05:14:13 PM by Dan »
Logged

SamuraiCrow

  • compile-time wierdo
  • Forum Mod
  • A1200
  • *****
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 946
  • Compile-time wierdo
Re: Bug or Hardware limitation ? x screen(x mouse) on hires screens
« Reply #3 on: April 15, 2017, 03:56:45 AM »

The OS may have more resolution than the Amos hardware banging.
Logged
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022