diff options
author | Vadim Rozenfeld <vrozenfe@redhat.com> | 2014-06-12 23:36:15 +1000 |
---|---|---|
committer | Vadim Rozenfeld <vrozenfe@redhat.com> | 2014-06-12 23:36:15 +1000 |
commit | 29e0336de5687f5b425be163c4b6fe3fcde258f1 (patch) | |
tree | 918cca9fea513ea6bc0a2a98cbec562624e7a57f | |
parent | c43d7065b69c27ecb9000778ed6dbedef6b2b42f (diff) |
fix resolution problem
-rwxr-xr-x | qxldod/QxlDod.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp index d8b01fc..9f04d72 100755 --- a/qxldod/QxlDod.cpp +++ b/qxldod/QxlDod.cpp @@ -2905,7 +2905,7 @@ NTSTATUS QxlDevice::GetModeList(DXGK_DISPLAY_INFORMATION* pDispInfo) UINT Height = pDispInfo->Height;
UINT Width = pDispInfo->Width;
-// UINT BitsPerPixel = BPPFromPixelFormat(pDispInfo->ColorFormat);
+ UINT BitsPerPixel = BPPFromPixelFormat(pDispInfo->ColorFormat);
for (CurrentMode = 0, SuitableModeCount = 0;
CurrentMode < ModeCount;
CurrentMode++)
@@ -2913,11 +2913,11 @@ NTSTATUS QxlDevice::GetModeList(DXGK_DISPLAY_INFORMATION* pDispInfo) QXLMode* tmpModeInfo = &modes->modes[CurrentMode];
- DbgPrint(TRACE_LEVEL_ERROR, ("%s: modes[%d] x_res = %d, y_res = %d, bits = %d\n", __FUNCTION__, CurrentMode, tmpModeInfo->x_res, tmpModeInfo->y_res, tmpModeInfo->bits));
+ DbgPrint(TRACE_LEVEL_ERROR, ("%s: modes[%d] x_res = %d, y_res = %d, bits = %d BitsPerPixel = %d\n", __FUNCTION__, CurrentMode, tmpModeInfo->x_res, tmpModeInfo->y_res, tmpModeInfo->bits, BitsPerPixel));
if (tmpModeInfo->x_res >= Width &&
- tmpModeInfo->y_res >= Height/* &&
- tmpModeInfo->bits == BitsPerPixel*/)
+ tmpModeInfo->y_res >= Height &&
+ tmpModeInfo->bits == 32)
{
m_ModeNumbers[SuitableModeCount] = CurrentMode;
SetVideoModeInfo(SuitableModeCount, tmpModeInfo);
|