SteamTarget: Change to subsystem Windows

according to https://github.com/SFML/SFML/issues/1192
v2
Peter Repukat 7 years ago
parent a6eeec1a0a
commit ed3046c057

@ -85,7 +85,7 @@
<LanguageStandard>stdcpp14</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<SubSystem>Windows</SubSystem>
<OutputFile>$(OutDir)\$(ProjectName).exe</OutputFile>
<AdditionalLibraryDirectories>..\dependencies\VigemClient\;..\dependencies\SFML-2.4.2-x86\lib;$(QTDIR)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<GenerateDebugInformation>true</GenerateDebugInformation>

@ -27,7 +27,6 @@ bool TargetOverlay::init(bool hidden, bool overlay_only_config)
const sf::VideoMode mode = sf::VideoMode::getDesktopMode();
window_.create(sf::VideoMode(mode.width - 16, mode.height - 32), "GloSC_OverlayWindow");
//Window is too large ; always 16 and 32 pixels? - sf::Style::None breaks transparency!
window_.setFramerateLimit(30);
window_.setPosition({ 0, 0 });
last_foreground_window_ = window_.getSystemHandle();

@ -14,11 +14,17 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
#include <QtCore/QCoreApplication>
#include <Windows.h>
#include "SteamTarget.h"
int main(int argc, char *argv[])
int CALLBACK WinMain(
_In_ HINSTANCE hInstance,
_In_ HINSTANCE hPrevInstance,
_In_ LPSTR lpCmdLine,
_In_ int nCmdShow
)
{
SteamTarget target(argc, argv);
SteamTarget target(__argc, __argv);
target.init();
return SteamTarget::exec();
}

Loading…
Cancel
Save