| 316 | } |
| 317 | |
| 318 | bool IsWindowFullscreen() |
| 319 | { |
| 320 | #ifdef _WIN32 |
| 321 | HWND activeWindow = HelpersGetActiveWindow(); |
| 322 | // Check if window is valid |
| 323 | if (!IsWindow(activeWindow)) return false; |
| 324 | |
| 325 | // Get window rect |
| 326 | RECT windowRect; |
| 327 | if (!GetWindowRect(activeWindow, &windowRect)) return false; |
| 328 | |
| 329 | // Get the monitor handle the window is on |
| 330 | HMONITOR hMonitor = MonitorFromWindow(activeWindow, MONITOR_DEFAULTTONEAREST); |
| 331 | if (!hMonitor) return false; |
| 332 | |
| 333 | // Get monitor info |
| 334 | MONITORINFO mi = {}; |
| 335 | mi.cbSize = sizeof(mi); |
| 336 | if (!GetMonitorInfo(hMonitor, &mi)) return false; |
| 337 | |
| 338 | RECT monitorRect = mi.rcMonitor; |
| 339 | |
| 340 | // Compare rects |
| 341 | return EqualRect(&windowRect, &monitorRect); |
| 342 | #else |
| 343 | return true; |
| 344 | #endif |
| 345 | } |
| 346 | |
| 347 | int ProgressBarStart(const char * windowText) |
| 348 | { |
no test coverage detected