renderer: add cursor:zoom_disable_aa for controlling AA on zoom (#12025)
This commit is contained in:
parent
60529e810d
commit
e40873be51
3 changed files with 10 additions and 2 deletions
|
|
@ -799,7 +799,8 @@ void CHyprOpenGLImpl::begin(PHLMONITOR pMonitor, const CRegion& damage_, CFrameb
|
|||
}
|
||||
|
||||
void CHyprOpenGLImpl::end() {
|
||||
static auto PZOOMRIGID = CConfigValue<Hyprlang::INT>("cursor:zoom_rigid");
|
||||
static auto PZOOMRIGID = CConfigValue<Hyprlang::INT>("cursor:zoom_rigid");
|
||||
static auto PZOOMDISABLEAA = CConfigValue<Hyprlang::INT>("cursor:zoom_disable_aa");
|
||||
|
||||
TRACY_GPU_ZONE("RenderEnd");
|
||||
|
||||
|
|
@ -826,7 +827,7 @@ void CHyprOpenGLImpl::end() {
|
|||
}
|
||||
|
||||
m_applyFinalShader = !m_renderData.blockScreenShader;
|
||||
if (m_renderData.mouseZoomUseMouse)
|
||||
if (m_renderData.mouseZoomUseMouse && *PZOOMDISABLEAA)
|
||||
m_renderData.useNearestNeighbor = true;
|
||||
|
||||
// copy the damaged areas into the mirror buffer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue