From 506daa17d9c01086b22a132ee98b72f393d9a640 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sat, 19 Apr 2014 20:50:59 -0700 Subject: [PATCH] Changed the windows test app a bit --- test/win/test.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/win/test.cpp b/test/win/test.cpp index 031c0503a..ef435ca8c 100644 --- a/test/win/test.cpp +++ b/test/win/test.cpp @@ -3,6 +3,7 @@ #include #include +#include #include #include @@ -94,8 +95,12 @@ static void CreateOBS(HWND hwnd) static void AddTestItems(obs_scene_t scene, obs_source_t source) { obs_sceneitem_t item = NULL; + struct vec2 scale; + + vec2_set(&scale, 20.0f, 20.0f); item = obs_scene_add(scene, source); + obs_sceneitem_setscale(item, &scale); } static HWND CreateTestWindow(HINSTANCE instance) @@ -176,7 +181,7 @@ int WINAPI WinMain(HINSTANCE instance, HINSTANCE prevInstance, LPSTR cmdLine, /* ------------------------------------------------------ */ /* set the scene as the primary draw source and go */ - obs_set_output_source(0, source); + obs_set_output_source(0, obs_scene_getsource(scene)); /* ------------------------------------------------------ */ /* set the main output render callback */