Jump to content

Display offset Y


Recommended Posts

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.

Link to post
Share on other sites

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.

Link to post
Share on other sites
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...