1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

update cmake minimum requirement from 2.8 to 3.0.2 due to usage of version comparasion of if command

check valac version to decide whether or not to use new Gdk.Monitor class
This commit is contained in:
Derek Dai 2017-03-24 01:08:18 +08:00
parent 19d60ad66a
commit b2fae367bf
No known key found for this signature in database
GPG key ID: E109CC97553EF009
3 changed files with 12 additions and 4 deletions

View file

@ -330,7 +330,7 @@ private class WfdCtl : GLib.Application
info("P2P group formed");
}
#if GDK_VERSION_NEWER_THEN_3_22
#if GDK_VERSION_NEWER_THEN_3_22 && VALA_VERSION_NEWER_THEN_0_34
private void get_monitor_geometry(out Gdk.Rectangle g) throws Error
{
Gdk.Monitor m;
@ -441,7 +441,7 @@ private class WfdCtl : GLib.Application
}
int n_monitors;
#if GDK_VERSION_NEWER_THEN_3_22
#if GDK_VERSION_NEWER_THEN_3_22 && VALA_VERSION_NEWER_THEN_0_34
n_monitors = display.get_n_monitors();
#else
n_monitors = display.get_default_screen().get_n_monitors();