Thursday, July 18, 2013

Should they be friends?

Is making console a friend to CFrame the only way I can determine whether the border is visible or not?
Or am I missing something?
Should we be making it a friend just to satisfy this portion of the program?

Thank you in advance!

void CLineEdit::draw(int Refresh) {
  console.strdsp((char*)_data + _offset,
                 (_visible) ? absRow() + 1 : absRow(),
                 (_visible) ? absCol() + 1 : absCol(),
                 (_visible) ? width() - 2 : width());

1 comment:

  1. What I did is just included console.h to the clineedit.cpp ; I'm not quite sure that it is the right thing to do, but it works