Giter Club home page Giter Club logo

Comments (11)

dreua avatar dreua commented on August 31, 2024

Hello BolverBlitz, thank you for reporting this issue!

I can easily reproduce it on Windows 10. It is triggered only after minimize or Windows+D (which is essentially "minimize all" so no surprise). Hiding the cnping window with other windows is no problem.

Unfortunately I have no idea what causes this and currently no solid plan on how to debug this, but hopefully I or someone else will come up with something.

from cnping.

dreua avatar dreua commented on August 31, 2024

I just tried the exe from dab665d and 5c42452 with the same results, I think this bug has been there for ever.

from cnping.

dreua avatar dreua commented on August 31, 2024

I found out that the problem does not exist when cnping is compiled with OpenGL (the Visual Studio project file of Rawdraw does this as default so I was kind of lucky finding this).

With OpenGL minimizing is not a problem anymore but the font looks worse, so I guess you have to "choose your pain".

Top: Standard cnping after minimizing.
Bottom: OpenGL cnping (minimizing makes no difference)
defaultVSogl

from cnping.

dreua avatar dreua commented on August 31, 2024
  1. The bug is also triggered by resizing the window to minimal (i.e. zero) height.
  2. Another possible fix is the RASTERIZER flag instead of CNFGOGL. Maybe that is even better? (Performance looks good to me.)
  3. I pulled in changes from rawdraw and my pull request there. The font looks the same now with OpenGL.

from cnping.

cnlohr avatar cnlohr commented on August 31, 2024

@dreua I am up for considering this, though I'd really like to understand why my use of the Windows API would lead to this. It would be good to fix the upstream in rawdraw. Not sure if you've noticed, but I've merged a lot of stuff, including the not-needing-admin thing.

from cnping.

dreua avatar dreua commented on August 31, 2024

It's been some time since I looked into that - I believe I searched the net for a bit but didn't really find something about this bug. Is there some keyword or documentation link for the API you are using here?

from cnping.

cnlohr avatar cnlohr commented on August 31, 2024

(Unrelated to topic)

@dreua the work you are doing is AMAZING. I really regret not making more time to work on github stuff earlier this year. I am working on something I think you may appreciate. Do you have some mechanism we can communicate over more directly? Discord? I'm cnlohr#4125

from cnping.

cnlohr avatar cnlohr commented on August 31, 2024

Anyone else who's attacked this: Do you also feel like you're eating crazy pills. None of this makes sense why it's reverting to 1bpp.

from cnping.

dreua avatar dreua commented on August 31, 2024

@cnlohr I sent you a friend request on discord (david#7284). Do you use telegram by any chance (@dreuamainz)?

from cnping.

cnlohr avatar cnlohr commented on August 31, 2024

I do not use Telegram.

from cnping.

dreua avatar dreua commented on August 31, 2024

Here is the fix, in case someone else is interested: cntools/rawdraw@250023c

from cnping.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.