Change screen resolution on the fly

84 views
Skip to first unread message

birdy

unread,
Jun 24, 2009, 10:02:18 PM6/24/09
to android-porting
I want to change the screen resolution from 1024x600 to 1024x768 when
user use VGA out function.
I had pass the fb_var_screeninfo to the driver at
EGLDisplaySurface.cpp. Use fini() and init() to free and re-initial
DisplayHardware in DisplayHardware.cpp. And then I copy a part of
ReadytoRun() in SurfaceFlinger.cpp to initialize primary screen,
shared control block and OpenGL|ES. After all I set all
DisplayHardware bound as dirty region and then composeSurface().
Are there something I have to do for reinit the display and screen?
If I want redraw all UI ( title bar, background, menu bar or AP's
UI…..), How can I do?

Dianne Hackborn

unread,
Jun 25, 2009, 4:29:52 AM6/25/09
to android...@googlegroups.com
You'll need to report up to the window manager about the new size, so
it can relayout all windows, and make sure that at this time it also
makes all of the windows redraw themselves.
--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support, and so won't reply to such e-mails. All
such questions should be posted on public forums, where I and others
can see and answer them.
Reply all
Reply to author
Forward
0 new messages