| 98 | } |
| 99 | |
| 100 | int CScreenXLib::Height() |
| 101 | { |
| 102 | int h = 0; |
| 103 | Display* dsp = NULL; |
| 104 | dsp = XOpenDisplay(NULL);/* Connect to a local display */ |
| 105 | if(NULL == dsp) |
| 106 | { |
| 107 | qCritical(LogScreen) << "Cannot connect to local display"; |
| 108 | return 0; |
| 109 | } |
| 110 | h = DisplayHeight(dsp, DefaultScreen(dsp)); |
| 111 | XCloseDisplay(dsp); |
| 112 | return h; |
| 113 | } |
| 114 | |
| 115 | int CScreenXLib::VirtualTop() |
| 116 | { |
no outgoing calls
no test coverage detected