Skip to content

Switch to Visual Studio 2019, disabled Screen Resolution Modification, added handling for the two GUID flags and added "return address" to log of interface calls#2

Open
TheRedDaemon wants to merge 2 commits intoJeremyAnsel:masterfrom
TheRedDaemon:ToVS2019project
Open

Conversation

@TheRedDaemon
Copy link

  • The two possible GUID flags DDCREATE_EMULATIONONLY and DDCREATE_HARDWAREONLY were not handled before.
  • Resolution Modification caused issues at least with the game "Stronghold Crusader"
  • Return address is received by using the intrinsic _ReturnAddress.
    • Found no method to get application call address of exported functions.

str << this << " " << __FUNCTION__;
str << " " << dwWidth << "x" << dwHeight << " " << dwBPP;

/* @TheRedDaemon: removed modification, intention is to see what it normally does, or not?
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of commenting out the display mode modification, I would prefer to have a #define config, maybe in common.h.

@JeremyAnsel
Copy link
Owner

Hello,
One comment related to the display mode modification. Except that, LGTM.
Thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants