Jump to content

Recommended Posts

Posted

I try to explain better.

I want the display to add for example 10 px as offset to the Y axis, so if I tell it to plot at x:0 y:0 it actually plots it at x:0 y:10

The easiest thing to do is to modify all the gdisp routines and add this offset to the y component.

I was wondering if anyone knew of a way to set the video controller at init already with this offset.

Posted

Can you elaborate a bit on what you want to achieve? It this offset desired to be global to everything the display displays or just for certain widgets? Also, is this a permanent measure or should this offset change during runtime?

If this is just a measure to align the UI of a machine with a display behind a panel I would recommend modifying the GDISP driver directly. This way your application remains unchanged and upgrading to future versions of µGFX will not require any changes.

Posted

In that case I'd recommend to adjust whatever GDISP driver you have to handle that adjustment for you.
How to do this depends on the GDISP driver model used but the overall idea remains the same: shift each pixel before the display controller gets access to it.

  • 3 weeks later...

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
×
×
  • Create New...