diff options
| author | vaxerski <vaxry@vaxry.net> | 2023-01-05 19:25:45 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2023-01-05 19:25:45 +0100 |
| commit | 96198dae55b1429449504e49065a10763b288431 (patch) | |
| tree | ee18d707952df6fcbd4f9295e138d1571b64267b /src/debug/HyprDebugOverlay.cpp | |
| parent | 0e3547e0f6b4016aa308292a86c43cd47dd206fd (diff) | |
Normalize color storage
Colors are now normalized to 0 - 1 values instead of 0 - 255
causes calculations to be simpler and generally cleans up the codebase.
Diffstat (limited to 'src/debug/HyprDebugOverlay.cpp')
| -rw-r--r-- | src/debug/HyprDebugOverlay.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug/HyprDebugOverlay.cpp b/src/debug/HyprDebugOverlay.cpp index e73b8b3f..c9fde1ad 100644 --- a/src/debug/HyprDebugOverlay.cpp +++ b/src/debug/HyprDebugOverlay.cpp @@ -183,5 +183,5 @@ void CHyprDebugOverlay::draw() { glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, PMONITOR->vecSize.x, PMONITOR->vecSize.y, 0, GL_RGBA, GL_UNSIGNED_BYTE, DATA); wlr_box pMonBox = {0, 0, PMONITOR->vecPixelSize.x, PMONITOR->vecPixelSize.y}; - g_pHyprOpenGL->renderTexture(m_tTexture, &pMonBox, 255.f); + g_pHyprOpenGL->renderTexture(m_tTexture, &pMonBox, 1.f); } |
