Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VirtualScreen getHeight not working #321

Open
GoogleCodeExporter opened this issue Apr 13, 2015 · 2 comments
Open

VirtualScreen getHeight not working #321

GoogleCodeExporter opened this issue Apr 13, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

U8GLIB_HT1632_24X16 u8g1 = U8GLIB_HT1632_24X16(22, 23, 21);
U8GLIB_HT1632_24X16 u8g2 = U8GLIB_HT1632_24X16(22, 23, 20);
U8GLIB_VS u8g = U8GLIB_VS();

u8g.addToVirtualScreen(0, 0, u8g1);
u8g.addToVirtualScreen(24, 0, u8g2);
u8g.setVirtualScreenDimension(48, 16);
u8g.getHeight(); // returns 0
u8g.firstPage();
u8g.getHeight(); // returns 16

What is the expected output? What do you see instead?
I should've 16 without needing to call firstPage

I tried to debug this but I don't know u8glib internals enough for that. The 
few changes I made to u8g_virtual_screen.c didn't prove successful.

Original issue reported on code.google.com by ant.ber...@gmail.com on 8 Feb 2015 at 11:03

@GoogleCodeExporter
Copy link
Author

Strange. 
u8g_vs_height is only used in u8g_virtual_screen.c
i do not see how this could go wrong.

closer investigation required.

Original comment by olikr...@gmail.com on 8 Feb 2015 at 3:03

@GoogleCodeExporter
Copy link
Author

I agree, I've tried to edit u8g_SetVirtualScreenDimension in 
u8g_virtual_screen.c and hardcode height but that didn't work.

Original comment by ant.ber...@gmail.com on 8 Feb 2015 at 6:28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant