Docopy question (Development MSX Fora)MSX Resource Center MSXdev 2008 - MSX1 development bonanza!           
            
English Nederlands Español Português Russian         
 Nieuws
   Voorpagina
  Nieuws archief
  Nieuws onderwerpen

 Informatie
   MSX Fora
  Artikelen
  Recensies
  Beursverslagen
  Fotoreportages
  Beurzen en meetings
  Enquêtes
  Links
  Zoek

 Software
   Downloads
  Webshop

 MRC
   Wie we zijn
  Kom bij ons team
  Doneren
  Policies
  Contact met het MRC
  Link naar Ons
  Statistieken

 Zoek
 
  

  

 Login
 

Gebruikersnaam

Wachtwoord




Ben je nog niet lid? Klik hier en word MSX vriend!


 Statistieken
 

Er zijn 51 gasten en 4 MSX vrienden online

Je bent een anonieme bezoeker.
 

MSX Fora


MSX Fora

Development - Docopy question

Schrijver

Docopy question

norakomi
msx professional
Berichten: 861
Geplaatst: 15 Juni 2006, 13:31   
I copy a large piece of grahx into the screen.
NX=50
NY=50
DX=240
DY=100
Dpage=0

Then you see in page 0 from (240,100)-(255,149) this piece of graphx.
So basically the NX of the copied graphx is 15 instead of 50.

Now what happened to the other half of the copied graphx ????
ARTRAG
msx master
Berichten: 1685
Geplaatst: 15 Juni 2006, 13:36   
it is simply lost
norakomi
msx professional
Berichten: 861
Geplaatst: 15 Juni 2006, 15:15   
thats pretty handy actually
would be cool if that could also work on the left side of screen



or in the top.

When I copy a big piece of grapx to page 0 at (almost) the bottom of the screen,
then the other half of the grapx gets pasted to page 1

thats not always handy
ARTRAG
msx master
Berichten: 1685
Geplaatst: 15 Juni 2006, 15:38   
to have the clip effect on the left
change the copy direction for the X coordinate

in this way you need to specify the top-rigth corner of the box
and you clipped the area that goes outside the left border of the screen


norakomi
msx professional
Berichten: 861
Geplaatst: 15 Juni 2006, 19:46   
cool !!

great tip man.

Does this work with $D0, $90, $98, $C0 copies ????

What about the top and bottom border, any cool tricks there?
ARTRAG
msx master
Berichten: 1685
Geplaatst: 15 Juni 2006, 20:13   
Quote:



Does this work with $D0, $90, $98, $C0 copies ????




it should work in any copy mode,
but do some trials to test the speed
i am not sure about the fact you get
all the time the same copy speed

if I am rigth you should consider to do some math
and implement the clipping by yourself

Quote:


What about the top and bottom border, any cool tricks there?



AFAIK there is no way for up/down borders, here you need to do
some math and implement clipping for the up/down borders by yourself

BiFi
msx guru
Berichten: 3142
Geplaatst: 24 Juni 2006, 07:07   
Quote:

Does this work with $D0, $90, $98, $C0 copies ????


if the doc says so, it most likely does... why would they document something it can't do?
GhostwriterP
msx addict
Berichten: 312
Geplaatst: 24 Juni 2006, 10:58   
I remember copying somthing in basic. A large (overlapping) area copied 16 pixels to the
right and it was a lot slower than copying to the left.
So my question is how does basic handle such copies? Does it filip the copy direction or not?
 
 







(c) 1994 - 2008 Stichting MSX Resource Center. MSX is een trademark van MSX Licensing Corporation.