Fix fl_overlay_rect() under X11 on HighDPI display.
The mandelbrot demo program is fixed.
This commit is contained in:
parent
034d49064e
commit
04ec829bfb
@ -204,7 +204,9 @@ unsigned Fl_Graphics_Driver::font_desc_size() {
|
||||
scale() and in slightly modifying that to help support tiled images. */
|
||||
void Fl_Graphics_Driver::cache_size(Fl_Image *img, int &width, int &height)
|
||||
{
|
||||
if ( int(scale()) == scale() ) {
|
||||
if ( int(scale()) == scale()
|
||||
|| width==1 || height==1 // to cover fl_overlay_clear
|
||||
) {
|
||||
width = width * scale();
|
||||
height = height * scale();
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user