Sign in to follow this  

Getting (x,y) coords from offset in screen

Recommended Posts

Remember old mode13h ? where: offset = 320*y + x, so vga_addr + offset points to (x,y) pixel, knowing the offset, its possible to get the x and y coordinates corresponding this offset ? I have tried: k1 = k2*y + x x = k1 - k2*y y = (k1 - x)/k2 but x depends of y and y of x :(

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this