Fix dependencies, typos, trailing whitespace, and formatting
No code changes.
This commit is contained in:
parent
e18ce5400f
commit
0f3b5ded8f
@ -126,7 +126,7 @@ public:
|
||||
int frame_w(int frame) const;
|
||||
int frame_h(int frame) const;
|
||||
|
||||
// -- overriden methods
|
||||
// -- overridden methods
|
||||
void color_average(Fl_Color c, float i) FL_OVERRIDE;
|
||||
Fl_Image *copy(int W, int H) const FL_OVERRIDE;
|
||||
Fl_Image *copy() const { return Fl_Pixmap::copy(); }
|
||||
|
@ -47,7 +47,7 @@ Wayland differs noticeably from X11 in that the position of a window in the disp
|
||||
completely hidden to the client app. This prevents function \c Fl_Window::position() from having
|
||||
any effect on a top-level window. Wayland also prevents a client app from knowing whether
|
||||
a window is minimized: \c Fl_Window::show() has no effect on an already mapped window.
|
||||
Subwindows can be positionned as usual relatively to their
|
||||
Subwindows can be positioned as usual relatively to their
|
||||
parent window. FLTK uses that for the small, yellow windows that display
|
||||
the new scale factor value when it's changed: these are created as short-lived subwindows
|
||||
centered above \c Fl::first_window().
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Definition of classes Fl_Graphics_Driver, Fl_Surface_Device, Fl_Display_Device
|
||||
// for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 2010-2022 by Bill Spitzak and others.
|
||||
// Copyright 2010-2023 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software. Distribution and use rights are outlined in
|
||||
// the file "COPYING" which should have been included with this file. If this
|
||||
@ -182,16 +182,16 @@ private:
|
||||
Gdiplus::Color gdiplus_color_;
|
||||
Gdiplus::Pen *pen_;
|
||||
Gdiplus::SolidBrush *brush_;
|
||||
// The code below ensures the a connection to GDIplus is only made once, and that the
|
||||
// The code below ensures that a connection to GDIplus is only made once, and that the
|
||||
// matching connection shutdown is also done exactly once.
|
||||
enum {
|
||||
STATE_CLOSED = 0, // no connection, token is invalid
|
||||
STATE_STARTUP, // attempt to start up, avoid recursions for whatever reason
|
||||
STATE_OPEN, // connection was successful and the token is valid
|
||||
STATE_SHUTDOWN // shutting down the gdi connection, avoid possible recursion
|
||||
STATE_CLOSED = 0, // no connection, token is invalid
|
||||
STATE_STARTUP, // attempt to start up, avoid recursions for whatever reason
|
||||
STATE_OPEN, // connection was successful and the token is valid
|
||||
STATE_SHUTDOWN // shutting down the gdi connection, avoid possible recursion
|
||||
};
|
||||
static int gdiplus_state_; // reflect the state of the GDIplus driver connection
|
||||
static ULONG_PTR gdiplus_token_; // the token that GDIplus gives to us
|
||||
static int gdiplus_state_; // reflect the state of the GDIplus driver connection
|
||||
static ULONG_PTR gdiplus_token_; // the token that GDIplus gives to us
|
||||
public:
|
||||
Fl_GDIplus_Graphics_Driver();
|
||||
virtual ~Fl_GDIplus_Graphics_Driver();
|
||||
|
@ -421,7 +421,7 @@ int Fl_PostScript_Graphics_Driver::alpha_mask(const uchar * data, int w, int h,
|
||||
swap = next;
|
||||
next = current;
|
||||
current = swap;
|
||||
*(next+1) = 0; // must clean the first cell, next are overriden by *1
|
||||
*(next+1) = 0; // must clean the first cell, next are overridden by *1
|
||||
for (i=0; i<w; i++){
|
||||
for (k=0; k<4; k++){ // generating 4 x-pixels for 1 RGB
|
||||
short error, o1, o2, o3;
|
||||
@ -454,7 +454,7 @@ int Fl_PostScript_Graphics_Driver::alpha_mask(const uchar * data, int w, int h,
|
||||
swap = next;
|
||||
next = current;
|
||||
current = swap;
|
||||
*(next+1) = 0; // must clean the first cell, next are overriden by *1
|
||||
*(next+1) = 0; // must clean the first cell, next are overridden by *1
|
||||
|
||||
for (i = w-1; i >= 0; i--){
|
||||
|
||||
|
@ -124,7 +124,7 @@ public:
|
||||
// constructor
|
||||
Fl_Wayland_Screen_Driver();
|
||||
|
||||
// overriden functions from parent class Fl_Screen_Driver
|
||||
// overridden functions from parent class Fl_Screen_Driver
|
||||
APP_SCALING_CAPABILITY rescalable() FL_OVERRIDE { return PER_SCREEN_APP_SCALING; }
|
||||
float scale(int n) FL_OVERRIDE;
|
||||
void scale(int n, float f) FL_OVERRIDE;
|
||||
|
@ -1073,6 +1073,7 @@ Fl_Anim_GIF_Image.o: ../FL/Fl_Plugin.H
|
||||
Fl_Anim_GIF_Image.o: ../FL/Fl_Preferences.H
|
||||
Fl_Anim_GIF_Image.o: ../FL/Fl_RGB_Image.H
|
||||
Fl_Anim_GIF_Image.o: ../FL/Fl_Shared_Image.H
|
||||
Fl_Anim_GIF_Image.o: ../FL/fl_string_functions.h
|
||||
Fl_Anim_GIF_Image.o: ../FL/fl_types.h
|
||||
Fl_Anim_GIF_Image.o: ../FL/fl_utf8.h
|
||||
Fl_Anim_GIF_Image.o: ../FL/Fl_Widget.H
|
||||
|
@ -42,7 +42,7 @@
|
||||
// (configure --enable-cairoext or CMake OPTION_CAIROEXT)
|
||||
// which defines the preprocessor variable FLTK_HAVE_CAIROEXT.
|
||||
// If Fl::cairo_autolink_context(true); is called at the beginning
|
||||
// of main(), any overriden draw() function gets access to an adequate
|
||||
// of main(), any overridden draw() function gets access to an adequate
|
||||
// Cairo context with Fl::cairo_cc() without having to call
|
||||
// Fl::cairo_make_current(Fl_Window*).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user