| 83 | } |
| 84 | |
| 85 | int CScreenXLib::Width() |
| 86 | { |
| 87 | int w = 0; |
| 88 | Display* dsp = NULL; |
| 89 | dsp = XOpenDisplay(NULL);/* Connect to a local display */ |
| 90 | if(NULL == dsp) |
| 91 | { |
| 92 | qCritical(LogScreen) << "Cannot connect to local display"; |
| 93 | return 0; |
| 94 | } |
| 95 | w = DisplayWidth(dsp, DefaultScreen(dsp)); |
| 96 | XCloseDisplay(dsp); |
| 97 | return w; |
| 98 | } |
| 99 | |
| 100 | int CScreenXLib::Height() |
| 101 | { |
no outgoing calls
no test coverage detected