MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / updatePixelFormat

Method updatePixelFormat

Plugins/TigerVnc/Client/BackendVnc.cpp:779–805  ·  view source on GitHub ↗

requestNewUpdate() requests an update from the server, having set the format and encoding appropriately.

Source from the content-addressed store, hash-verified

777// requestNewUpdate() requests an update from the server, having set the
778// format and encoding appropriately.
779void 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
807void CBackendVnc::mousePressEvent(QMouseEvent *event)
808{

Callers

nothing calls this directly

Calls 1

GetColorLevelMethod · 0.80

Tested by

no test coverage detected