Skip to content

Commit

Permalink
Adjust dpmi get selector base for dosmem and return 1 (hardware defau…
Browse files Browse the repository at this point in the history
…lt) for vrefresh in GetDeviceCaps (#1279)
  • Loading branch information
cracyc authored Mar 12, 2023
1 parent ab35a1d commit 43a077c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions gdi/gdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2279,6 +2279,7 @@ INT16 WINAPI GetDeviceCaps16( HDC16 hdc, INT16 cap )
}
}
else if (((cap == NUMCOLORS) || (cap == NUMPENS)) && (ret == -1)) ret = 2048;
else if (cap == VREFRESH) ret = 1;
if (krnl386_get_compat_mode("640X480") && (GetDeviceCaps(hdc32, TECHNOLOGY) == DT_RASDISPLAY))
{
switch (cap)
Expand Down
2 changes: 1 addition & 1 deletion krnl386/int31.c
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ void WINAPI DOSVM_Int31Handler( CONTEXT *context )
}
else
{
void *base = wine_ldt_get_base(&entry);
void *base = GetSelectorBase(sel);
SET_CX( context, HIWORD(base) );
SET_DX( context, LOWORD(base) );
}
Expand Down

0 comments on commit 43a077c

Please sign in to comment.