CScreenDevice and BcmFrameBuffer resizing. #385
Replies: 9 comments 9 replies
-
You can define a pointer to a |
Beta Was this translation helpful? Give feedback.
-
I should of thought of that, not very elegant in my view, but simple and works. I was worried about creating memory leaks and the full circle stack collapsing. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Honestly resizing was not a requirement, when |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks for that. I will be transferring all my rendering to the |
Beta Was this translation helpful? Give feedback.
-
I was thinking maybe it would also be a good idea to implement a mouse update function to see the screen size changes. |
Beta Was this translation helpful? Give feedback.
-
Thanks! I looked at the function code myself but most of it I do not understand fully so I try not tinker with it too much, I leave that to the much more skilled :) |
Beta Was this translation helpful? Give feedback.
-
There is a new method |
Beta Was this translation helpful? Give feedback.
-
Works great! I will close this topic now before it ends up as a dumping ground for all my feature requests. |
Beta Was this translation helpful? Give feedback.
-
I'm creating my 'CScreenDevice' through the kernel as normal with the width and height passed in as the parameters for example I use size from
config.txt
thenm_Screen(m_Options.GetWidth(), m_Options.GetHeight())
.Now the problem I have is after I have initialized the screen how would I then go about reszing the
BcmFrameBuffer
that theCScreenDevice
automatically creates and initializes ?How does one go about assigning a new BcmFrameBuffer to the CScreenDevice ?
I can create a seperate BcmFrameBuffer with a new width and height but that causes the inital CScreenDevice to show a black screen and the docs state that only 1 BcmFrameBuffer is supported with RPI1.
Would be useful to have a function called
CScreenDevice.ResizeFrameBuffer(uint32_t newWidth, uint32_t newHeight)
.Or maybe
CScreenDevice.SetFrameBuffer(BcmFrameBuffer newFrameBuffer)
.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions