Zhiyi Zhang (@zhiyi) commented about dlls/wineandroid.drv/init.c:
- {
TRACE( "mode %d -- not present\n", n );
RtlSetLastWin32Error( ERROR_NO_MORE_FILES );
return FALSE;
- }
- devmode->u2.dmDisplayFlags = 0;
- devmode->u1.s2.dmPosition.x = 0;
- devmode->u1.s2.dmPosition.y = 0;
- devmode->u1.s2.dmDisplayOrientation = 0;
- devmode->u1.s2.dmDisplayFixedOutput = 0;
- devmode->dmPelsWidth = screen_width;
- devmode->dmPelsHeight = screen_height;
- devmode->dmBitsPerPel = screen_bpp;
- devmode->dmDisplayFrequency = 60;
- devmode->dmFields = DM_DISPLAYORIENTATION | DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL |
I missed it in MR406, you forgot DM_DISPLAYORIENTATION in ANDROID_UpdateDisplayDevices(). So with this patch, the enumerated modes will be missing the flag.