Просмотр исходного кода

Update include/SDL3/SDL_power.h

Co-authored-by: Sam Lantinga <slouken@libsdl.org>
(cherry picked from commit 088ad66f7014914fe18d44741b7fe79b9decb93e)
Vittorio Romeo 11 месяцев назад
Родитель
Сommit
7ecae856e5
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      include/SDL3/SDL_power.h

+ 1 - 2
include/SDL3/SDL_power.h

@@ -79,8 +79,7 @@ typedef enum SDL_PowerState
  * It's possible a platform can only report battery percentage or time left
  * but not both.
  *
- * On some platforms, retrieving power supply details might be expensive. It
- * is not recommended to invoke this function every frame.
+ * On some platforms, retrieving power supply details might be expensive. If you want to display continuous status you could call this function every minute or so.
  *
  * \param seconds a pointer filled in with the seconds of battery life left,
  *                or NULL to ignore. This will be filled in with -1 if we