We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4039d3 commit 27df340Copy full SHA for 27df340
src/video/ohos/SDL_ohosvideo.c
@@ -11,7 +11,6 @@
11
12
bool OHOS_VideoInit(SDL_VideoDevice *_this)
13
{
14
- _this->num_displays = 1;
15
SDL_DisplayMode mode;
16
SDL_zero(mode);
17
mode.format = SDL_PIXELFORMAT_RGBA32;
@@ -20,11 +19,8 @@ bool OHOS_VideoInit(SDL_VideoDevice *_this)
20
19
mode.refresh_rate = 60;
21
22
SDL_DisplayID displayID = SDL_AddBasicVideoDisplay(&mode);
23
- if (displayID == 0) {
24
- return false;
25
- }
26
- _this->displays = SDL_calloc(1, sizeof(SDL_VideoDisplay*));
27
- _this->displays[0] = SDL_GetVideoDisplay(displayID);
+ SDL_Log("testvid: %u", displayID);
+ SDL_Log("testvid: %u", _this->displays[0]->id);
28
return true;
29
}
30
void OHOS_VideoQuit(SDL_VideoDevice *_this)
0 commit comments