Browse Source

Revert "win-capture: Use texture for actual source size"

This reverts commit 74354dc4cf47af0d36d177366c57edb10acdd5b6.  I really
shouldn't have modified this, especially not in this way.  Was the wrong
approach.  The thing I was trying to fix was very rare as well.
jp9000 10 years ago
parent
commit
d5ebe48180
1 changed files with 2 additions and 4 deletions
  1. 2 4
      plugins/win-capture/game-capture.c

+ 2 - 4
plugins/win-capture/game-capture.c

@@ -1360,15 +1360,13 @@ static void game_capture_render(void *data, gs_effect_t *effect)
 static uint32_t game_capture_width(void *data)
 {
 	struct game_capture *gc = data;
-	return (gc->active && gc->texture) ?
-		gs_texture_get_width(gc->texture) : 0;
+	return gc->active ? gc->global_hook_info->cx : 0;
 }
 
 static uint32_t game_capture_height(void *data)
 {
 	struct game_capture *gc = data;
-	return (gc->active && gc->texture) ?
-		gs_texture_get_height(gc->texture) : 0;
+	return gc->active ? gc->global_hook_info->cy : 0;
 }
 
 static const char *game_capture_name(void)