mirror of https://github.com/fltk/fltk
Fix compiler warnings on Windows with mingw-w64 CMAKE_CXX_STANDARD=20 (#615)
This commit is contained in:
parent
7601bd832c
commit
72b8054ecc
|
@ -673,7 +673,7 @@ int Fl_PostScript_Graphics_Driver::start_postscript (int pagecount,
|
|||
left_margin = 12;
|
||||
top_margin = 12;
|
||||
}
|
||||
page_format_ = (enum Fl_Paged_Device::Page_Format)(format | layout);
|
||||
page_format_ = (enum Fl_Paged_Device::Page_Format)((int)format | (int)layout);
|
||||
if (layout & Fl_Paged_Device::LANDSCAPE){
|
||||
ph_ = Fl_Paged_Device::page_formats[format].width;
|
||||
pw_ = Fl_Paged_Device::page_formats[format].height;
|
||||
|
|
|
@ -87,7 +87,7 @@ static void make_images() {
|
|||
// A moving blob
|
||||
const float pos = (i / (float) FRAMES) * 2 - 0.5f;
|
||||
|
||||
const int xoffset = int(pos * DIM);
|
||||
const int xoffset = int(pos * (int)DIM);
|
||||
const int yoffset = 2 * DIM / 3;
|
||||
const int w = DIM / 4;
|
||||
|
||||
|
|
Loading…
Reference in New Issue