diff --git a/src/servers/app/server/AccelerantDriver.cpp b/src/servers/app/server/AccelerantDriver.cpp index a29e5a0859..fb1c447886 100644 --- a/src/servers/app/server/AccelerantDriver.cpp +++ b/src/servers/app/server/AccelerantDriver.cpp @@ -1050,15 +1050,15 @@ void AccelerantDriver::FillRoundRect(BRect r, float xrad, float yrad, LayerData PatternHandler pattern(pat); pattern.SetColors(d->highcolor, d->lowcolor); - for (i=0; iRequestDraw(lay->Bounds()); } +#ifdef DISPLAYDRIVER_TEST_HACK + int8 pattern[8]; + int8 pattern2[8]; + memset(pattern,255,8); + memset(pattern2,128+32+8+2,8); + BRect r1(100,100,1500,1100); + BPoint pts[4]; + pts[0].x = 200; + pts[0].y = 200; + pts[1].x = 400; + pts[1].y = 1000; + pts[2].x = 600; + pts[2].y = 400; + pts[3].x = 1200; + pts[3].y = 800; + + _layerdata->highcolor.SetColor(255,0,0,255); + _layerdata->lowcolor.SetColor(255,255,255,255); + _driver->FillRect(r1,_layerdata,pattern); + + _layerdata->highcolor.SetColor(255,255,0,255); + _driver->StrokeLine(BPoint(100,100),BPoint(1500,1100),_layerdata,pattern); + + _layerdata->highcolor.SetColor(0,0,255,255); + _driver->StrokeBezier(pts,_layerdata,pattern); + _driver->StrokeArc(BRect(200,300,400,600),30,270,_layerdata,pattern); + _driver->StrokeEllipse(BRect(200,700,400,900),_layerdata,pattern); + _driver->StrokeRect(BRect(650,1000,750,1090),_layerdata,pattern); + _driver->StrokeRoundRect(BRect(200,1000,600,1090),30,40,_layerdata,pattern); + _driver->FillArc(BRect(1250,300,1450,600),30,270,_layerdata,pattern); +// _driver->FillBezier(pts,_layerdata,pattern); + _driver->FillEllipse(BRect(800,300,1200,600),_layerdata,pattern); + _driver->FillRoundRect(BRect(800,1000,1200,1090),30,40,_layerdata,pattern2); +#endif } /*! diff --git a/src/servers/app/server/ServerConfig.h b/src/servers/app/server/ServerConfig.h index ed50fb8ebb..970d1b45e2 100644 --- a/src/servers/app/server/ServerConfig.h +++ b/src/servers/app/server/ServerConfig.h @@ -23,9 +23,12 @@ // Display driver to be used by the server. #define DISPLAYDRIVER VIEWDRIVER +// Define this for a quick hack to test some of the drawing functions +//#define DISPLAYDRIVER_TEST_HACK + // Define this if you want the display driver to emulate the input server. // Comment this out if DISPLAYDRIVER is defined as HWDRIVER. -#define ENABLE_INPUT_SERVER_EMULATION +//#define ENABLE_INPUT_SERVER_EMULATION // This is the application signature of our app_server when running as a // regular application. When running as the app_server, this is not used.