leonoyd / u8glib

Automatically exported from code.google.com/p/u8glib
0 stars 0 forks source link

VirtualScreen getHeight not working #321

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago
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