Incorrect calculation of window border sizes for client area, makes area smaller than its supposed to be, when window styles are enabled.
See GetSystemMetrics.
I need to explicitly set
#define HGE_DIRECTX_VER 9
in order for hge to not give me this error:
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention
at function call Texture_load (line 119 in tutorial2.cpp)