tag:blogger.com,1999:blog-2539902160309921161.post7029757778317195134..comments2023-03-13T01:52:07.287-07:00Comments on Upstreaming the Android Emulator: Framebuffer PatchPatrick Jacksonhttp://www.blogger.com/profile/13249889828163320822noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-2539902160309921161.post-19781037056966809432011-07-07T06:13:13.672-07:002011-07-07T06:13:13.672-07:00The best way to do that would be allow QEMU to cre...The best way to do that would be allow QEMU to create a default DisplayState that is not hard-coded to 640x480x32, as is currently the case.<br /><br />See the upstream dumb_display_init() in console.c which gets called when get_displaystate() is called _before_ machine initialization in vl.c.<br /><br />Because I wanted to minimize the changes from upstream in the Android emulator, I use a hack which is to modify vl-android.c to call "android_reset_display(width,height,depth)" just after the call to get_displaystate(). This function essentially scraps the default display surface, and replaces it with a version that has the right properties.<br /><br />A more correct, but more invasive, fix would be to modify console.c to allow the creation of a "dumb" display state of any size and depth instead, and have vl.c call this function instead of get_displaystate().<br /><br />Which width/height/depth parameters to use need to be passed on the command-line probably through new options, since this feature is currently unsupported.Unknownhttps://www.blogger.com/profile/05938757482975967718noreply@blogger.com