Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
3 days | Factor out puglIsValidSize() | David Robillard | 5 | -5/+14 | |
3 days | Factor out puglIsValidPosition() | David Robillard | 6 | -8/+17 | |
3 days | Rename PuglViewSize to PuglArea | David Robillard | 7 | -36/+36 | |
3 days | Make puglSetSizeHint() consistent with puglSetSize() | David Robillard | 7 | -37/+45 | |
In general, it's more convenient to have full-width integers as parameters, since C will promote any arithmetic on smaller types to them anyway. Using narrow types here, then, doesn't really make anything stricter, just forces an annoying cast when lots of warnings are enabled, which is likely unchecked. Better to handle it here, since it's more convenient, and the integer range checks the compiler can do aren't correct anyway (the max width/height is intentionally smaller than the max PuglSpan, so it can fit in a signed 16-bit integer). | |||||
3 days | Windows: Avoid waiting less than a millisecond | David Robillard | 1 | -2/+4 | |
There is API to access the minimum timer resolution, but it seems to always be 1 millisecond, which is also the unit of the MsgWaitForMultipleObjects parameter, so just avoid the fuss and hardcode this as the minimum. This should slightly reduce overhead when the main loop is running without much of a margin until the frame needs to be drawn. | |||||
4 days | Update stale deprecations | David Robillard | 1 | -3/+3 | |
4 days | Use a consistent naming scheme for parent functions | David Robillard | 6 | -15/+40 | |
These could be combined into a hint-like general get/set mechanism, but currently there's only two window relationships and no immediate plans to add more, so that feels a bit over-engineered. So, just rename for consistency with puglSetTransientParent(). | |||||
4 days | Use PuglSpan for view sizes | David Robillard | 5 | -21/+19 | |
4 days | Fix strict header warning test build | David Robillard | 2 | -2/+9 | |
4 days | Fix pugl_shader_demo refresh rate on Windows | David Robillard | 2 | -6/+7 | |
4 days | Support building for Windows with or without UNICODE | David Robillard | 3 | -40/+70 | |
4 days | Use enums for WGL constants | David Robillard | 1 | -24/+36 | |
4 days | X11: Generate text events for keypad symbols | Martin Preinfalk | 1 | -1/+2 | |
5 days | Make MacOS touchpad scroll sensitivity closer to other platforms | David Robillard | 1 | -3/+3 | |
5 days | Fix Windows test build with Vulkan | David Robillard | 2 | -2/+2 | |
5 days | Add header warning tests | David Robillard | 8 | -1/+167 | |
5 days | Separate C++ build tests to avoid C/C++ warning clashes | David Robillard | 10 | -111/+158 | |
5 days | Add missing const qualifier | David Robillard | 1 | -1/+1 | |
5 days | Add PUGL_KEY_NONE | David Robillard | 5 | -9/+9 | |
This isn't a strict enumeration anyway, so a sentinel value does no harm, and using it avoids warnings about testing an enum with no zero value. | |||||
5 days | Fix whitespace | David Robillard | 2 | -8/+2 | |
5 days | Fix warnings in clang build on Windows | David Robillard | 4 | -12/+30 | |
2024-12-21 | Suppress warnings in strict GCC build | David Robillard | 1 | -0/+1 | |
2024-10-05 | Remove unused options struct from test | David Robillard | 1 | -9/+5 | |
2024-10-05 | Clean up documentation build and use unique target names | David Robillard | 7 | -20/+26 | |
2024-10-01 | Make "docs" option yieldable | David Robillard | 1 | -2/+2 | |
2024-10-01 | Suppress new warnings in clang and clang-tidy 18 | David Robillard | 8 | -8/+17 | |
2024-10-01 | Remove redundant "inline" specifier | David Robillard | 1 | -4/+4 | |
2024-07-13 | MacOS: Fix mouse wheel scroll speed | David Robillard | 1 | -5/+11 | |
This just happens to be the factor that results in one tick of a conventional mouse wheel being a change of 1.0 "lines" as on other platforms (at least for me, hopefully everywhere). Moving a wheel quickly does result in quite a lot of acceleration on MacOS though, so more refinement might be needed here for consistent event handling across platforms. | |||||
2024-07-13 | MacOS: Fix expose event coordinates | David Robillard | 1 | -1/+4 | |
2024-07-13 | X11: Avoid setting PBaseSize hints for top-level windows | David Robillard | 1 | -1/+2 | |
By my reading of the spec, pugl's use of this hint was correct. However, many window managers break when it's set and use that size as the minimum (even when an actual minimum is set). This seems to be a bug based on a misreading of the spec which has been copy-pasted across many small window manager projects over the years. Not exposing the default size is unfortunate, but apparently nobody misses features based on it and there's nothing we can do about it here, so just deny the window manager the information entirely. The hint is still set for embedded views because (for example) plugin hosts need this information. | |||||
2024-07-12 | Windows: Support building with UNICODE | David Robillard | 3 | -20/+37 | |
2024-06-10 | Fix build and tests with optional X11 features disabled | David Robillard | 7 | -28/+34 | |
2024-06-10 | Suppress new warnings in clang-tidy 17 | David Robillard | 1 | -0/+2 | |
2024-06-10 | Avoid std::endl | David Robillard | 1 | -3/+3 | |
2023-11-11 | MacOS: Fix Cairo rendering on some systems | David Robillard | 1 | -3/+1 | |
CGContextConvertSizeToUserSpace returns a negative height on some systems and a positive height on others. I have no idea why, but only basic scaling is required here, so just avoid this function entirely. | |||||
2023-11-11 | Add support for Num, Scroll, and Caps Lock | David Robillard | 6 | -26/+49 | |
2023-11-11 | Add a special symbol for the tab key | David Robillard | 2 | -0/+3 | |
2023-11-11 | MacOS: Support left/right shift, control, and option keys | David Robillard | 1 | -4/+6 | |
2023-11-11 | Consistently use trailing commas in enums | David Robillard | 1 | -10/+10 | |
This reduces diff noise and merge conflicts, and at least basic C99 support is deeply required anyway. | |||||
2023-11-11 | Suppress new warnings in clang-tidy 16 | David Robillard | 4 | -6/+11 | |
2023-11-11 | Remove redundant default values from meson_options.txt | David Robillard | 1 | -10/+10 | |
2023-10-22 | X11: Only call XSetTransientForHint for valid windows | falkTX | 1 | -1/+1 | |
Signed-off-by: falkTX <falktx@falktx.com> | |||||
2023-10-21 | Fix potential memory leaks due to realloc() failure | David Robillard | 2 | -31/+55 | |
2023-10-21 | Suppress clang-tidy C++ warnings | David Robillard | 2 | -0/+2 | |
2023-10-21 | Fix whitespace | David Robillard | 1 | -1/+2 | |
2023-10-21 | MacOS: Fix horizontal scroll direction | David Robillard | 1 | -1/+1 | |
2023-10-21 | X11: Use PUGL_INIT_STRUCT to initialize char arrays | falkTX | 1 | -3/+3 | |
2023-10-21 | X11: Fix key press event key when control is pressed | falkTX | 1 | -2/+2 | |
2023-10-21 | Remove spurious semicolon | David Robillard | 1 | -1/+1 | |
2023-10-21 | Filter out corresponding modifiers from key events | David Robillard | 5 | -8/+38 | |
Platforms differ here, but it's meaningless to ask about the state of a modifier that's currently being pressed or released, so simply mask this out in general so it's easy for platform implementations to clean events up before dispatching them. |