Remove use of class Fl_Window_Driver inside libfltk_gl
This commit is contained in:
parent
3ba09047e2
commit
3225afaeec
@ -301,7 +301,7 @@ void Fl_Wayland_Gl_Window_Driver::make_current_before() {
|
||||
|
||||
float Fl_Wayland_Gl_Window_Driver::pixels_per_unit()
|
||||
{
|
||||
int ns = Fl_Window_Driver::driver(pWindow)->screen_num();
|
||||
int ns = pWindow->screen_num();
|
||||
int wld_scale = pWindow->shown() ? fl_wl_xid(pWindow)->scale : 1;
|
||||
return wld_scale * Fl::screen_driver()->scale(ns);
|
||||
}
|
||||
|
@ -19,7 +19,6 @@
|
||||
#include <FL/platform.H>
|
||||
#include "../../Fl_Gl_Choice.H"
|
||||
#include "../../Fl_Screen_Driver.H"
|
||||
#include "../../Fl_Window_Driver.H"
|
||||
#include "Fl_X11_Gl_Window_Driver.H"
|
||||
# include <GL/glx.h>
|
||||
# if ! defined(GLX_VERSION_1_3)
|
||||
@ -347,7 +346,7 @@ void Fl_X11_Gl_Window_Driver::before_show(int&) {
|
||||
|
||||
float Fl_X11_Gl_Window_Driver::pixels_per_unit()
|
||||
{
|
||||
int ns = Fl_Window_Driver::driver(pWindow)->screen_num();
|
||||
int ns = pWindow->screen_num();
|
||||
return Fl::screen_driver()->scale(ns);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user