MCPcopy Create free account
hub / github.com/GrapheneCt/NetStream / SetDisplayResolution

Method SetDisplayResolution

NetStream/source/utils.cpp:120–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void utils::SetDisplayResolution(uint32_t resolution)
121{
122 if (SCE_PAF_IS_DOLCE)
123 {
124 ui::Environment *env = Framework::Instance()->GetEnvironmentInstance();
125 switch (resolution)
126 {
127 case ui::EnvironmentParam::RESOLUTION_PSP2:
128 env->SetResolution(960, 544);
129 break;
130 case ui::EnvironmentParam::RESOLUTION_HD_HALF:
131 env->SetResolution(1280, 725);
132 break;
133 case ui::EnvironmentParam::RESOLUTION_HD_FULL:
134 env->SetResolution(1920, 1088);
135 break;
136 }
137 }
138}
139
140void utils::Init()
141{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected