requestNewUpdate() requests an update from the server, having set the format and encoding appropriately.
| 777 | // requestNewUpdate() requests an update from the server, having set the |
| 778 | // format and encoding appropriately. |
| 779 | void CBackendVnc::updatePixelFormat() |
| 780 | { |
| 781 | Q_ASSERT(m_pPara); |
| 782 | |
| 783 | if(!m_pPara) return; |
| 784 | rfb::PixelFormat pf; |
| 785 | |
| 786 | switch (m_pPara->GetColorLevel()) { |
| 787 | case CParameterVnc::Full: |
| 788 | pf = fullColourPF; |
| 789 | break; |
| 790 | case CParameterVnc::Medium: |
| 791 | pf = mediumColourPF; |
| 792 | break; |
| 793 | case CParameterVnc::Low: |
| 794 | pf = lowColourPF; |
| 795 | break; |
| 796 | case CParameterVnc::VeryLow: |
| 797 | pf = verylowColourPF; |
| 798 | break; |
| 799 | } |
| 800 | |
| 801 | char str[256]; |
| 802 | pf.print(str, 256); |
| 803 | qInfo(log) << "Update pixel format:" << str; |
| 804 | setPF(pf); |
| 805 | } |
| 806 | |
| 807 | void CBackendVnc::mousePressEvent(QMouseEvent *event) |
| 808 | { |
nothing calls this directly
no test coverage detected