Demo: implementado el cambio de tamaño de la ventana

This commit is contained in:
2023-05-07 14:22:14 +02:00
parent 9b9fd15f4e
commit 90ebea4807
5 changed files with 82 additions and 66 deletions

View File

@@ -142,11 +142,11 @@ void Notify::showText(string text1, string text2, int icon)
}
else if (options->notifications.posH == pos_middle)
{
despH = ((options->screen.windowWidth * options->windowSize) / 2 - (width / 2));
despH = ((options->screen.nativeWidth * options->screen.windowZoom) / 2 - (width / 2));
}
else
{
despH = (options->screen.windowWidth * options->windowSize) - width - padding;
despH = (options->screen.nativeWidth * options->screen.windowZoom) - width - padding;
}
// Posición vertical
@@ -157,7 +157,7 @@ void Notify::showText(string text1, string text2, int icon)
}
else
{
despV = (options->screen.windowHeight * options->windowSize) - height - padding;
despV = (options->screen.nativeHeight * options->screen.windowZoom) - height - padding;
}
const int travelDist = height + padding;