* Moved the global BPrivate::WidthBuffer from BTextView into BPrivate as

gWidthBuffer.
* Tracker PoseView now uses BPrivate::gWidthBuffer instead of it's own
  instance.
* TextView.h and PoseView.h are now a little cleaner.
* InterfaceDefs.cpp now deletes gWidthBuffer in _fini_interface_kit_().
* Added binary compatibility support for NetPositive in WidthBuffer.h and .cpp.
  Obviously it kind of defeats the purpose of having WidthBuffer neatly tucked
  away in the BPrivate namespace, but Haiku should run NetPositive, I guess.
  Fixes #2879.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28532 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2008-11-06 11:31:40 +00:00
parent 5074333ded
commit b545073f08
7 changed files with 58 additions and 26 deletions
+17
View File
@@ -78,6 +78,23 @@ private:
static uint32 Hash(uint32);
};
extern WidthBuffer* gWidthBuffer;
} // namespace BPrivate
using BPrivate::WidthBuffer;
#if __GNUC__ < 3
//! NetPositive binary compatibility support
class _BWidthBuffer_ : public _BTextViewSupportBuffer_<BPrivate::_width_table_> {
_BWidthBuffer_();
virtual ~_BWidthBuffer_();
};
extern
_BWidthBuffer_* gCompatibilityWidthBuffer;
#endif // __GNUC__ < 3
#endif // __WIDTHBUFFER_H