Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selection shifts the rendering grid #134

Open
jpt13653903 opened this issue Nov 4, 2024 · 2 comments
Open

Selection shifts the rendering grid #134

jpt13653903 opened this issue Nov 4, 2024 · 2 comments

Comments

@jpt13653903
Copy link

I have the following setup:

  • Windows 11, Version 10.0.22631.4317
  • Neovim 0.10.2
  • Nvy 0.4.1 (started with --disable-ligatures)
  • guifont=Cascadia Code SemiLight:h11
  • I do not enable screen scaling -- all my screens are 100%

When I select lines, the renderer looses pixel-alignment. You can see this on the right-hand screen's fold indicators:

image

image

@jpt13653903
Copy link
Author

@RMichelsen

I'd like to take a stab at fixing this myself, but I'm having trouble with the build chain...

My cmake output is:

PS C:\jpt\GitHub\nvy\build> cmake .. -GNinja
-- The C compiler identification is MSVC 19.41.34123.0
-- The CXX compiler identification is MSVC 19.41.34123.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.41.34120/bin/Hostx86/x86/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.41.34120/bin/Hostx86/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.42.0.windows.2")
-- Configuring done (1.0s)
-- Generating done (0.0s)
-- Build files have been written to: C:/JPT/GitHub/Nvy/build

And ninja outputs:

PS C:\jpt\GitHub\nvy\build> ninja
[5/9] Building CXX object CMakeFiles\Nvy.dir\src\renderer\glyph_renderer.cpp.obj
FAILED: CMakeFiles/Nvy.dir/src/renderer/glyph_renderer.cpp.obj
C:\PROGRA~2\MICROS~3\2022\BUILDT~1\VC\Tools\MSVC\1441~1.341\bin\Hostx86\x86\cl.exe  /nologo /TP -DMPACK_EXTENSIONS -DUNICODE -IC:\JPT\GitHub\Nvy\src /DWIN32 /D_WINDOWS /GR- /EHs-c- /Zi /Ob0 /Od /RTC1 -std:c++20 -MDd /YuC:/JPT/GitHub/Nvy/build/CMakeFiles/Nvy.dir/cmake_pch.hxx /FpC:/JPT/GitHub/Nvy/build/CMakeFiles/Nvy.dir/./cmake_pch.cxx.pch /FIC:/JPT/GitHub/Nvy/build/CMakeFiles/Nvy.dir/cmake_pch.hxx /showIncludes /FoCMakeFiles\Nvy.dir\src\renderer\glyph_renderer.cpp.obj /FdCMakeFiles\Nvy.dir\ /FS -c C:\JPT\GitHub\Nvy\src\renderer\glyph_renderer.cpp
C:\JPT\GitHub\Nvy\src\renderer\glyph_renderer.h(9): error C2695: 'GlyphDrawingEffect::AddRef': overriding virtual function differs from 'IUnknown::AddRef' only by calling convention
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\um\unknwnbase.h(125): note: see declaration of 'IUnknown::AddRef'
C:\JPT\GitHub\Nvy\src\renderer\glyph_renderer.h(13): error C2695: 'GlyphDrawingEffect::Release': overriding virtual function differs from 'IUnknown::Release' only by calling convention
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\um\unknwnbase.h(127): note: see declaration of 'IUnknown::Release'
.
.
.
.

Any advice?

@jpt13653903
Copy link
Author

jpt13653903 commented Nov 11, 2024

Never mind -- I added STDMETHODCALLTYPE to everything and now it builds.

The next problem is that it crashes the moment I try to run my build. I'm suspecting a library version issue that I'm not going to try and solve.

I've switched over to using PowerShell as my Neovim GUI -- didn't realise that it's actually decent before trying it out accidentally today while trying to debug my build issues...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant