Coder Social home page Coder Social logo

Comments (7)

Curve avatar Curve commented on May 28, 2024

It's because we set dpi awareness, I can disable that call for windows 7 but can't guarantee that everything else works fine as windows 7 is not officially supported by this library other than that I can't think of anything that would cause the problems you mentioned

Edit: The other problems you mentioned could be caused by the windows implementation library, however I will not replace that

from webviewpp.

Curve avatar Curve commented on May 28, 2024

Windows 8.1 Support will also use the old SetDPIAwareness function - I don't want to look into why it fails on windows 7 tho as I don't plan to support Windows 7, sorry

from webviewpp.

diegofazio avatar diegofazio commented on May 28, 2024

No problem. I just curious why with pure webview2 works.
Here you have a simple test program https://github.com/diegofazio/webview2 for win32/win64. It works perfect on win7/8/10 and it use the windows implementation library. There is something in particularly in Zerge and your webview.h that make it does not work. You can compile from cmd and test it.

from webviewpp.

Curve avatar Curve commented on May 28, 2024

I just curious why with pure webview2 works.

Makes me curious too, I'll take a look a the repo you provided, maybe I can find out what causes it

from webviewpp.

Curve avatar Curve commented on May 28, 2024

Sorry I couldn't find out exactly why it happens but by just looking at the code it may be because of the call to SetProcessDpiAwareness, as the earliest Windows version that is officially supported on is Windows 8.1, so you may want to comment out the call completely, maybe that works for you?

from webviewpp.

diegofazio avatar diegofazio commented on May 28, 2024

windows.cpp - line 51

#if defined(WEBVIEWPP_WINDOWS_8)

// SetProcessDpiAwareness(PROCESS_SYSTEM_DPI_AWARE); // NOLINT
#else
// SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE); // NOLINT
#endif

I commented both. And show a black screen but the webview windows does not appear

from webviewpp.

Curve avatar Curve commented on May 28, 2024

I commented both. And show a black screen but the webview windows does not appear

That's weird, then there seems to be another issue on windows 7 because the not setting DPI awareness should not break things

from webviewpp.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.