mirror of
https://github.com/fltk/fltk.git
synced 2026-05-30 04:55:29 +08:00
New Wayland-specific function: int fl_wl_buffer_scale(Fl_Window *)
This commit is contained in:
@@ -43,6 +43,8 @@ extern FL_EXPORT cairo_t *fl_wl_gc();
|
|||||||
\endcode
|
\endcode
|
||||||
*/
|
*/
|
||||||
extern FL_EXPORT struct wl_compositor *fl_wl_compositor();
|
extern FL_EXPORT struct wl_compositor *fl_wl_compositor();
|
||||||
|
/** Returns the current buffer scaling factor for \p window. */
|
||||||
|
extern FL_EXPORT int fl_wl_buffer_scale(Fl_Window *window);
|
||||||
typedef void *EGLContext;
|
typedef void *EGLContext;
|
||||||
/** Returns the EGLContext corresponding to the given GLContext */
|
/** Returns the EGLContext corresponding to the given GLContext */
|
||||||
extern FL_EXPORT EGLContext fl_wl_glcontext(GLContext rc);
|
extern FL_EXPORT EGLContext fl_wl_glcontext(GLContext rc);
|
||||||
|
|||||||
@@ -2090,6 +2090,11 @@ struct wl_compositor *fl_wl_compositor() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int fl_wl_buffer_scale(Fl_Window *window) {
|
||||||
|
return Fl_Wayland_Window_Driver::driver(window)->wld_scale();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Fl_Wayland_Plugin *Fl_Wayland_Window_Driver::gl_plugin() {
|
Fl_Wayland_Plugin *Fl_Wayland_Window_Driver::gl_plugin() {
|
||||||
static Fl_Wayland_Plugin *plugin = NULL;
|
static Fl_Wayland_Plugin *plugin = NULL;
|
||||||
if (!plugin) {
|
if (!plugin) {
|
||||||
|
|||||||
Reference in New Issue
Block a user