From 1a2f566f12c2f781b7418ad491d8f951ddcfce12 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Sun, 24 Nov 2024 09:25:26 -0700 Subject: [PATCH] Update migration guide --- migration.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/migration.md b/migration.md index e36c99a17..67b0bd207 100644 --- a/migration.md +++ b/migration.md @@ -223,8 +223,7 @@ Here is a complete list of all enumerations which have undergone this change: ## `sf::Rect` -`sf::Rect` has been refactored from 4 scalar values into 2 `sf::Vector2`s. -Its two data members are `sf::Vector2`s named `position` and `size`. +`sf::Rect` has been refactored from the four scalar values `top`, `left`, `width`, and `height` into two `sf::Vector2`s named `position` and `size`. This means that `sf::Rect::getPosition()` and `sf::Rect::getSize()` have been removed in favor of directly accessing the `position` and `size` data members. The 4-parameter constructor was also removed in favor of the constructor which takes two `sf::Vector2`s.