| 39 | } |
| 40 | |
| 41 | DisplayHandle getCurrentDisplayHandle() |
| 42 | { |
| 43 | auto id = DisplayHandle{0}; |
| 44 | |
| 45 | #if defined(OS_WIN) |
| 46 | const auto display = wglGetCurrentDC(); |
| 47 | #elif defined(OS_LNX) |
| 48 | const auto display = glXGetCurrentDisplay(); |
| 49 | #else |
| 50 | const DisplayHandle display = 0; |
| 51 | #endif |
| 52 | id = reinterpret_cast<DisplayHandle>(display); |
| 53 | |
| 54 | return id; |
| 55 | } |
| 56 | |
| 57 | } |
| 58 | } |
no outgoing calls
no test coverage detected