From 3af4da323ab401ad41e2eca2c6afbc2c3d632da6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Mon, 11 Sep 2006 11:26:48 +0000 Subject: [PATCH] implemented DrawPoint in terms of DrawLine (for now) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/dfb/dc.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dfb/dc.cpp b/src/dfb/dc.cpp index 7522910..0cda14d 100644 --- a/src/dfb/dc.cpp +++ b/src/dfb/dc.cpp @@ -201,7 +201,12 @@ void wxDC::DoDrawPoint(wxCoord x, wxCoord y) { wxCHECK_RET( Ok(), wxT("invalid dc") ); - wxFAIL_MSG( _T("DrawPoint not implemented") ); + // NB: DirectFB API doesn't provide a function for drawing points, so + // implement it as 1px long line. This is inefficient, but then, so is + // using DrawPoint() for drawing more than a few points. + DoDrawLine(x, y, x, y); + + // FIXME_DFB: implement special cases for common formats (RGB24,RGBA/RGB32) } void wxDC::DoDrawPolygon(int n, wxPoint points[], wxCoord xoffset, wxCoord yoffset,int WXUNUSED(fillStyle)) -- 2.7.4