#exult@irc.freenode.net logs for 28 Nov 2017 (GMT)

Archive Today Yesterday Tomorrow
Exult homepage


[02:28:47] <-- Dominus has left IRC (Ping timeout: 260 seconds)
[02:29:00] --> Dominus has joined #exult
[02:29:00] --- ChanServ gives channel operator status to Dominus
[07:46:15] --> ttarrant has joined #exult
[09:28:10] --> michael-kohlhaas has joined #exult
[10:47:09] <Dominus> So after bashing my head against the wall, I found out that there is no API on iOS to grab available screensize *BEFORE* creating the screen
[10:48:01] <Dominus> So there are two things you can do: hardcode every stupid available screensize of the various iOS devices
[10:48:35] <Dominus> Or create the screen with FULLSCREEN_DESKTOP and hope for the best
[10:49:19] <Dominus> I'll try the FS_Desktop just to see how it handles landscape portrait
[10:50:11] <Dominus> And if that works if I can make that work versis our way of first enumerating all available resolutions
[14:10:24] <ttarrant> Dominus, one of the best things of the NeXT was resolution independence based on Display PostScript
[14:10:36] <ttarrant> Dominus, it seems all that goodness was lost in the mists of time...
[14:11:26] <Dominus> that was waaaaayyyy before I had any programming knowledge (and I still have few :))
[14:21:58] <Dominus> ha ha, that worked really well, not entering any width and height and just letting it create a fullscreen:desktop window didn't exactly work...
[14:22:04] <Dominus> 32766 resX, -341164848 resY <- :)
[14:40:31] <Dominus> hmm, interesting, OpenTyrian tries to solve this by creating a hidden SDL window and thus find the true window size. The reiniting with the true Window size..
[16:42:57] <-- Rottingbeef has left IRC ()
[17:41:44] --> Marzo has joined #exult
[19:12:54] <Dominus> ok, got a retina display finally... in imagewin.cc Image_window::create_scale_surfaces after screen_renderer = SDL_CreateRenderer(screen_window, -1, 0); I need to add
[19:12:55] <Dominus> int rw, rh;
[19:12:55] <Dominus> SDL_GL_GetDrawableSize(screen_window, &rw, &rh);
[19:13:14] <Dominus> and then replace SDL_RenderPresent(screen_renderer); with SDL_RenderSetLogicalSize(screen_renderer, rw, rh);
[19:16:05] <wjp> that last one doesn't really make sense
[19:16:35] <wjp> RenderPresent and RenderSetLogicalSize are quite different functions
[19:16:56] <wjp> the former pushes data to the screen, while the latter just sets data size
[19:18:57] <Dominus> He he, I'm flying blind... so replacement probably wasn't necessary
[19:19:29] <wjp> if you need the RenderSetLogicalSize, I would expect that directly after CreateRenderer is the place for that
[19:20:10] <Dominus> At least with that the screen matches the touch input
[19:21:30] <Dominus> Got to experiment more probably and make sure it's not sone other failed experiment interfering
[19:22:28] <Dominus> The big problem still is to get a valid w and h to begin with
[19:23:38] <Dominus> Since we read that from the exult.cfg or set it in exult.cc before we create the window
[19:24:01] <Dominus> And sdl_display_mode gives the simple res
[19:30:38] <Dominus> And I seem to lose the last shortcut bar item at high res
[19:31:09] <Dominus> It's still there but won't register a touch
[19:32:08] <Dominus> Some of that is getting confused by what I'm doing ;)
[19:52:20] <-- ttarrant has left IRC (Quit: Leaving)
[21:09:57] <-- Marzo has left IRC (Ping timeout: 248 seconds)
[21:13:46] <-- michael-kohlhaas has left IRC (Remote host closed the connection)
[23:13:45] <-- Lightkey has left IRC (Ping timeout: 276 seconds)
[23:25:33] --> Lightkey has joined #exult