fixed some font related problems, Painter should now rely on the app_server font manager. maybe I fixed some compile problems too. Sorry if that was the case.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12145 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2005-03-29 22:58:09 +00:00
parent d3b0b7b979
commit 0cabce17c3
3 changed files with 9 additions and 6 deletions

View File

@ -307,9 +307,10 @@ class DisplayDriver {
virtual void Unlock() = 0;
// display mode access
virtual void SetMode(const display_mode &mode) = 0;
virtual void GetMode(display_mode *mode) = 0;
virtual const display_mode* DisplayMode() = 0;
virtual void SetMode(const display_mode &mode);
virtual void GetMode(display_mode *mode);
const display_mode* DisplayMode()
{ return &fDisplayMode; }
virtual bool DumpToFile(const char *path) = 0;
virtual ServerBitmap* DumpToBitmap() = 0;
@ -356,6 +357,8 @@ class DisplayDriver {
// needed by Layer
virtual void ConstrainClippingRegion(BRegion *reg) = 0;
protected:
display_mode fDisplayMode;
};
#endif

View File

@ -227,7 +227,7 @@ class Painter {
void _RebuildClipping();
void _UpdateFont();
void _UpdateFont(const char* pathToFontFile = NULL);
void _UpdateLineWidth();
// drawing functions stroke/fill

View File

@ -38,8 +38,8 @@
// Display driver to be used by the server.
#ifndef DISPLAYDRIVER
//# define DISPLAYDRIVER PAINTERDRIVER
# define DISPLAYDRIVER VIEWDRIVER
# define DISPLAYDRIVER PAINTERDRIVER
//# define DISPLAYDRIVER VIEWDRIVER
#endif
// Uncomment this if the DisplayDriver should only rely on drawing functions implemented