#exult@irc.freenode.net logs for 25 Jan 2018 (GMT)

Archive Today Yesterday Tomorrow
Exult homepage


[00:34:32] --> Rottingbeef has joined #exult
[02:05:10] <-- Dark-Star has left IRC (Ping timeout: 246 seconds)
[02:08:36] --> Dark-Star has joined #exult
[02:27:11] <-- Dominus has left IRC (Ping timeout: 260 seconds)
[02:28:26] --> Dominus has joined #exult
[02:28:26] --- ChanServ gives channel operator status to Dominus
[02:37:04] --> azeem has joined #exult
[02:40:41] <-- azeem_ has left IRC (Ping timeout: 240 seconds)
[04:08:53] <-- tsoliman has left IRC (Quit: I've been banished!)
[04:10:43] --> tsoliman has joined #exult
[10:55:35] <-- Sev has left IRC (Ping timeout: 255 seconds)
[10:57:09] --> Sevalecan has joined #exult
[10:57:09] <-- Sevalecan has left IRC (Changing host)
[10:57:09] --> Sevalecan has joined #exult
[11:16:17] <-- Lightkey has left IRC (Ping timeout: 276 seconds)
[11:30:37] --> Lightkey has joined #exult
[13:51:35] --> ttarrant has joined #exult
[13:54:20] --> ttarrant_ has joined #exult
[13:57:19] <-- ttarrant has left IRC (Ping timeout: 268 seconds)
[13:57:35] --- ttarrant_ is now known as ttarrant
[15:14:38] <-- ttarrant has left IRC (Quit: Leaving)
[15:40:19] --> ttarrant has joined #exult
[16:05:08] --> michael-kohlhaas has joined #exult
[16:34:19] <-- ttarrant has left IRC (Quit: Leaving)
[18:04:27] <-- michael-kohlhaas has left IRC (Remote host closed the connection)
[18:06:57] --> michael-kohlhaas has joined #exult
[19:13:26] <Dominus> wjp, I have again a fundamental question that is most likely very obvious to you but not for me.
[19:13:27] <Dominus> On iOS and (and OS X with HighDPi enabled) the Cheat::cursor_teleport function (https://github.com/exult/exult/blob/master/cheat.cc#L839)
[19:13:27] <Dominus> doesn't work correctly as gwin->get_win()->screen_to_game(x, y, gwin->get_fastmouse(), x, y); produces only a fraction of the coordinates it should. Caused by the HighDpi which could be 2 times or three times or an odd number depending on other iOS settings.
[19:13:37] <Dominus> So, I wonder why the gwin->get_win()->screen_to_game(x, y, gwin->get_fastmouse(), x, y) is getting only a fraction of the coordinates while so far everything on iOS seems to work corectly.
[19:13:52] <Dominus> I could get the native_scale factor (?) by adding this after https://github.com/exult/exult/blob/master/imagewin/imagewin.cc#L698
[19:13:53] <Dominus> int sw;
[19:13:53] <Dominus> SDL_GetWindowSize(screen_window, &sw, 0);
[19:13:53] <Dominus> float nativescale = 1.0;
[19:13:53] <Dominus> nativescale = dw / sw;
[19:14:10] <Dominus> But I have no idea how to get the value of nativescale into cheat.cc...
[19:29:18] <-- Rottingbeef has left IRC (*.net *.split)
[19:29:38] --> Rottingbeef has joined #exult
[19:30:59] <-- michael-kohlhaas has left IRC (Remote host closed the connection)