Some code changes for GCC 7
This commit is contained in:
parent
55070bfc39
commit
48e737818c
|
@ -1,3 +1,7 @@
|
|||
2017-08-11 Markus Gans <guru.mail@muenster.de>
|
||||
* Some code changes for GCC 7
|
||||
* Implementation of a copy constructor for FPoint and FRect
|
||||
|
||||
2017-08-06 Markus Gans <guru.mail@muenster.de>
|
||||
* Fix GNU Screen support for vte/gnome-terminals
|
||||
* Advanced streaming functionality for FTermBuffer
|
||||
|
|
|
@ -702,7 +702,7 @@ int FFileDialog::changeDir (const FString& dirname)
|
|||
printPath(directory);
|
||||
filename->redraw();
|
||||
filebrowser->redraw();
|
||||
|
||||
// fall through
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -23,6 +23,7 @@ class FPoint
|
|||
public:
|
||||
// Constructors
|
||||
FPoint ();
|
||||
FPoint (const FPoint&); // copy constructor
|
||||
FPoint (int, int);
|
||||
|
||||
// Destructor
|
||||
|
@ -69,6 +70,12 @@ inline FPoint::FPoint()
|
|||
, ypos(0)
|
||||
{ }
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
inline FPoint::FPoint (const FPoint& p) // copy constructor
|
||||
: xpos(p.xpos)
|
||||
, ypos(p.ypos)
|
||||
{ }
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
inline FPoint::FPoint (int x, int y)
|
||||
: xpos(short(x))
|
||||
|
|
|
@ -27,6 +27,7 @@ class FRect
|
|||
public:
|
||||
// Constructors
|
||||
FRect ();
|
||||
FRect (const FRect&); // copy constructor
|
||||
FRect (int, int, int, int);
|
||||
FRect (const FPoint&, const FPoint&);
|
||||
|
||||
|
@ -112,6 +113,14 @@ inline FRect::FRect()
|
|||
, Y2(-1)
|
||||
{ }
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
inline FRect::FRect (const FRect& r) // copy constructor
|
||||
: X1(r.X1)
|
||||
, Y1(r.Y1)
|
||||
, X2(r.X2)
|
||||
, Y2(r.Y2)
|
||||
{ }
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
inline FRect::FRect (int x, int y, int width, int height)
|
||||
: X1(short(x))
|
||||
|
|
|
@ -441,7 +441,7 @@ int FVTerm::print (term_area* area, const FString& s)
|
|||
{
|
||||
case '\n':
|
||||
area->cursor_y++;
|
||||
|
||||
// fall through
|
||||
case '\r':
|
||||
area->cursor_x = 1;
|
||||
break;
|
||||
|
@ -599,7 +599,7 @@ int FVTerm::print (term_area* area, const std::vector<char_data>& termString)
|
|||
{
|
||||
case '\n':
|
||||
area->cursor_y++;
|
||||
|
||||
// fall through
|
||||
case '\r':
|
||||
area->cursor_x = 1;
|
||||
break;
|
||||
|
|
|
@ -67,7 +67,7 @@ void move (int xold, int yold, int xnew, int ynew)
|
|||
// prints the cursor move escape sequence
|
||||
std::string sequence;
|
||||
char* buffer;
|
||||
char from[10], to[10], byte[15];
|
||||
char from[10], to[10], byte[20];
|
||||
uInt len;
|
||||
|
||||
term_boundaries(xold, yold);
|
||||
|
|
Loading…
Reference in New Issue