Aleksandras Andrejevas
Aleksandras Andrejevas
@Biswa96 No. This happens when calling make with --warn-undefined-variables -R options and not using a makefile (see screenshot in issue) or with any project whose makefile does not define GNUMAKEFLAGS...
I found that this bug is already reported but it does not seem to be fixed: https://lists.gnu.org/archive/html/bug-make/2022-11/msg00196.html https://savannah.gnu.org/bugs/?63439
After creating my project using `lake new my_project`, it took a bit of searching to figure out that I can use `lake env lean --run Main.lean` to call the main...
@eXpl0it3r The current implementation works but it is inefficient. And that inefficiency in some use cases could be not acceptable. It seems such a feature has been implemented in raylib...
@jjuhl I want a new waitEvent function: ```cpp std::optional sf::WindowBase::trueWaitEvent() ``` or a new waitEvent function overload: ```cpp std::optional sf::WindowBase::waitEvent(const EvenTypesToPoll) window.waitEvent(sf::EvenTypesToPoll::NoJoystickEvents); ``` and that it would use in it's...
@SimonMaracine Well of course a monospace font is centerable. But non monospaced fonts should be centerable also. I tried to center Arial font text. Here is the only line I...
I actually just tried to center Courier New font (which is a monospaced font) text and I was not able to center it: ```cpp font = TTF_OpenFont("C:\\Windows\\Fonts\\cour.ttf", 830); ```
Yeah, I tried some time ago to calculate the width of the text using `TTF_GetGlyphMetrics` and the info in https://freetype.org/freetype2/docs/glyphs/glyphs-3.html. And I was able to do it using this code:...
```cpp SDL_Rect get_text_bbox(TTF_Font * const font, const std::string_view text) { int text_w = 0, left = 0, top = INT_MIN, bottom = INT_MAX; const char * pstr = text.data(); while...