Fixed: calculator behavior for negative values in trigonometric functions
This commit is contained in:
parent
2b3a7d3a4c
commit
2435e17b5d
|
@ -2315,12 +2315,6 @@ FTerm::char_data FTerm::getCoveredCharacter (int x, int y, FTerm* obj)
|
|||
|
||||
|
||||
// public methods of FTerm
|
||||
//----------------------------------------------------------------------
|
||||
inline FTerm::term_area* FTerm::getVWin() const
|
||||
{
|
||||
return vwin;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
bool FTerm::setVGAFont()
|
||||
{
|
||||
|
|
|
@ -435,6 +435,12 @@ class FTerm
|
|||
inline const char* FTerm::getClassName() const
|
||||
{ return "FTerm"; }
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
inline FTerm::term_area* FTerm::getVWin() const
|
||||
{
|
||||
return vwin;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
inline int FTerm::getLineNumber()
|
||||
{
|
||||
|
|
|
@ -826,14 +826,14 @@ FWidget* FWidget::getRootWidget() const
|
|||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
inline FWidget* FWidget::getMainWidget()
|
||||
FWidget* FWidget::getMainWidget()
|
||||
{
|
||||
FWidget* main_widget = static_cast<FWidget*>(FApplication::main_widget);
|
||||
return main_widget;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
inline void FWidget::setMainWidget(FWidget* obj)
|
||||
void FWidget::setMainWidget(FWidget* obj)
|
||||
{
|
||||
FApplication* fapp = static_cast<FApplication*>(rootObject);
|
||||
fapp->setMainWidget(obj);
|
||||
|
@ -888,14 +888,14 @@ inline void FWidget::setFocusWidget(FWidget* obj)
|
|||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
inline FWidget* FWidget::getClickedWidget()
|
||||
FWidget* FWidget::getClickedWidget()
|
||||
{
|
||||
FWidget* clicked_widget = static_cast<FWidget*>(FApplication::clicked_widget);
|
||||
return clicked_widget;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
inline void FWidget::setClickedWidget(FWidget* obj)
|
||||
void FWidget::setClickedWidget(FWidget* obj)
|
||||
{
|
||||
FApplication::clicked_widget = obj;
|
||||
}
|
||||
|
@ -1785,13 +1785,13 @@ inline void FWidget::unsetCursorPos()
|
|||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
inline void FWidget::gotoxy (const FPoint& pos)
|
||||
void FWidget::gotoxy (const FPoint& pos)
|
||||
{
|
||||
gotoxy (pos.getX(), pos.getY());
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
inline void FWidget::gotoxy (register int x, register int y)
|
||||
void FWidget::gotoxy (register int x, register int y)
|
||||
{
|
||||
cursor->setPoint(x,y);
|
||||
}
|
||||
|
@ -1842,19 +1842,19 @@ void FWidget::clrscr()
|
|||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
inline bool FWidget::setBold (register bool on)
|
||||
bool FWidget::setBold (register bool on)
|
||||
{
|
||||
return (bold = on);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
inline bool FWidget::setReverse (register bool on)
|
||||
bool FWidget::setReverse (register bool on)
|
||||
{
|
||||
return (reverse = on);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
inline bool FWidget::setUnderline (register bool on)
|
||||
bool FWidget::setUnderline (register bool on)
|
||||
{
|
||||
return (underline = on);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue