| 110 | } |
| 111 | |
| 112 | QImage CScreenWindows::GetScreen(int index) |
| 113 | { |
| 114 | int nRet = GetImage(true); |
| 115 | if(nRet) return QImage(); |
| 116 | |
| 117 | if(QImage::Format_Invalid == m_Format) |
| 118 | m_Format = m_Screen.format(); |
| 119 | if(m_Screen.format() != m_Format && QImage::Format_Invalid != m_Format) |
| 120 | m_Screen = m_Screen.convertToFormat(m_Format); |
| 121 | return m_Screen; |
| 122 | } |
| 123 | |
| 124 | int CScreenWindows::GetImage(bool bBuffer) |
| 125 | { |
nothing calls this directly
no test coverage detected