mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Previously, when the connection to the device was lost while mirroring, the window closed immediately, suggesting scrcpy had crashed. To make it clear that a disconnection occurred, display a disconnected icon for 2 seconds before closing the window. PR #6662 <https://github.com/Genymobile/scrcpy/pull/6662>
17 lines
292 B
C
17 lines
292 B
C
#ifndef SC_ICON_H
|
|
#define SC_ICON_H
|
|
|
|
#include "common.h"
|
|
|
|
#include <SDL3/SDL_surface.h>
|
|
|
|
#define SC_ICON_FILENAME_SCRCPY "scrcpy.png"
|
|
#define SC_ICON_FILENAME_DISCONNECTED "disconnected.png"
|
|
|
|
SDL_Surface *
|
|
sc_icon_load(const char *filename);
|
|
|
|
void
|
|
sc_icon_destroy(SDL_Surface *icon);
|
|
|
|
#endif
|