Files
textmate/Frameworks/layout/src/render.cc
Allan Odgaard b6ed16251e Use wrapper for CGContextRef
This allows us to add a few other things like the “misspelled word” image.
2012-09-04 23:53:37 +02:00

15 lines
282 B
C++

#include "render.h"
#include <oak/oak.h>
#include <cf/cf.h>
namespace render
{
void fill_rect (CGContextRef context, CGColorRef color, CGRect const& rect)
{
ASSERT(color);
CGContextSetFillColorWithColor(context, color);
CGContextFillRect(context, rect);
}
} /* render */