Giter Site home page Giter Site logo

Comments (14)

kvakvs avatar kvakvs commented on August 10, 2024 1

I have added WS_BORDER style to the frame size calculation, not sure how to test it but please re-download HGE or do git pull and then give it a try.

from hge.

erikhellstrom avatar erikhellstrom commented on August 10, 2024

Is there any news on this bug? I guess System_Initiate() needs to be modified but i dont know how to recompile myself.

Best regards
Erik H

from hge.

kvakvs avatar kvakvs commented on August 10, 2024

Personal things were preventing me from looking at it on Friday/Saturday, today might be a chance or tomorrow. I'm on vacation now. It is not forgotten.

from hge.

erikhellstrom avatar erikhellstrom commented on August 10, 2024

Cool! I can check earliest tonight.

But will this retain compatability with win 7 and win xp? Should not the window styles be fetched from the actual window at startup?

from hge.

kvakvs avatar kvakvs commented on August 10, 2024

Window styles are calculated according to selected mode, fullscreen or windowed, if windowed there's also header bar and closing buttons. And then window box is adjusted using the styles to include window decorations in size. This should be fairly compatible, if styles are set correctly (which needs checking).

from hge.

erikhellstrom avatar erikhellstrom commented on August 10, 2024

Hi again! I get this error but not sure where to set this version:

Error (active) E0035 #error directive: Please set HGE_DIRECTX_VER to 8 or 9 supremacy C:\Dropbox\PROJECT\code\hge181\include\hge.h 15

I downloaded it all and replaced all includes and also replaced hge.dll in my project with the one from tutorials/precompiled (since this one was edited 20 hours ago I figured it was the new one).

from hge.

kvakvs avatar kvakvs commented on August 10, 2024

Set it in CMakeLists.txt in the root of the project. Or set it with a #define before including hge.h, if that is hard to control where you include it, you can set it globally in your project via Project Settings -> C++ -> Preprocessor
It has also default value 9.

from hge.

erikhellstrom avatar erikhellstrom commented on August 10, 2024

I get past that now with some defines. But the new version doesnt have any "hge.lib" file, which is demanded for me to compile ("cannot open file 'hge.lib'). I havent any reference in my own code to that file. It used to be in the folder lib/vc.

Ps. Thank you for your help!

from hge.

kvakvs avatar kvakvs commented on August 10, 2024

It is still same HGE that you downloaded before, this part did not change despite me changing a lot in the source. Follow the build instructions in README and then pick up output files in linklib and binaries in bin.

from hge.

erikhellstrom avatar erikhellstrom commented on August 10, 2024

No SLN file is created by cMake. I get no errors in CMakeOutput.log but still no solutions file in the _build folder hierarchy.

It creates a CmakeFiles folder and inside that a 3.12.2 and CMakeTmp folder. But there is no solutions file to build. I use a directx 9 SDK which is assigned in the CMakeLists.txt.

from hge.

kvakvs avatar kvakvs commented on August 10, 2024

For now my best suggestion would be to see your screen cast over a live Hangouts or Skype or Discord call. Or a remote control like TeamViewer.

from hge.

erikhellstrom avatar erikhellstrom commented on August 10, 2024

Yeah I can do skype anytime during today before 16.30 (working from home). Tonight I cannot im afraid.
Skypename:
"salladskungen"

from hge.

erikhellstrom avatar erikhellstrom commented on August 10, 2024

Hi again!
A new oddity I found is that it now creates the window with upper-left corner in the middle of the screen. Which means 3/4 of the window is outside your screen and needs to be dragged.

In the old version the window was created centered on the screen, fitting it on the screen if possible, which was better.

I changed it to this and this seems to work fine (the window is now centered on the screen):

    rect_windowed_.left = (scr_width - screen_width_) / 2;
    rect_windowed_.top = (scr_height - screen_height_) / 2;

from hge.

kvakvs avatar kvakvs commented on August 10, 2024

I will add the change to the source when i'll have a minute, latest in a week.
Thanks!

from hge.

Related Issues (9)

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.