#include "pmgen.h"
#include "harness/trace.h"
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_match(br_device_pixelmap *self, br_device_pixelmap **newpm, br_token_value *tv)
br_error _M_br_device_pixelmap_gen_match(br_device_pixelmap* self, br_device_pixelmap** newpm, br_token_value* tv) {
LOG_TRACE("(%p, %p, %p)", self, newpm, tv);
NOT_IMPLEMENTED();
}
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_copy(br_device_pixelmap *self, br_device_pixelmap *src)
br_error _M_br_device_pixelmap_gen_copy(br_device_pixelmap* self, br_device_pixelmap* src) {
//br_rectangle r; // Pierre-Marie Baty -- unused variable
//br_point p; // Pierre-Marie Baty -- unused variable
LOG_TRACE("(%p, %p)", self, src);
NOT_IMPLEMENTED();
}
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_copyTo(br_device_pixelmap *self, br_device_pixelmap *src)
br_error _M_br_device_pixelmap_gen_copyTo(br_device_pixelmap* self, br_device_pixelmap* src) {
//br_rectangle r; // Pierre-Marie Baty -- unused variable
//br_point p; // Pierre-Marie Baty -- unused variable
LOG_TRACE("(%p, %p)", self, src);
NOT_IMPLEMENTED();
}
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_copyFrom(br_device_pixelmap *self, br_device_pixelmap *src)
br_error _M_br_device_pixelmap_gen_copyFrom(br_device_pixelmap* self, br_device_pixelmap* src) {
//br_rectangle r; // Pierre-Marie Baty -- unused variable
//br_point p; // Pierre-Marie Baty -- unused variable
LOG_TRACE("(%p, %p)", self, src);
NOT_IMPLEMENTED();
}
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_fill(br_device_pixelmap *self, br_uint_32 colour)
br_error _M_br_device_pixelmap_gen_fill(br_device_pixelmap* self, br_uint_32 colour) {
//br_rectangle r; // Pierre-Marie Baty -- unused variable
LOG_TRACE("(%p, %d)", self, colour);
NOT_IMPLEMENTED();
}
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_doubleBuffer(br_device_pixelmap *self, br_device_pixelmap *src)
br_error _M_br_device_pixelmap_gen_doubleBuffer(br_device_pixelmap* self, br_device_pixelmap* src) {
//br_rectangle s; // Pierre-Marie Baty -- unused variable
//br_rectangle d; // Pierre-Marie Baty -- unused variable
LOG_TRACE("(%p, %p)", self, src);
NOT_IMPLEMENTED();
}
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_copyDirty(br_device_pixelmap *self, br_device_pixelmap *src, br_rectangle *dirty, br_int_32 num_rects)
br_error _M_br_device_pixelmap_gen_copyDirty(br_device_pixelmap* self, br_device_pixelmap* src, br_rectangle* dirty, br_int_32 num_rects) {
//int i; // Pierre-Marie Baty -- unused variable
//br_point p; // Pierre-Marie Baty -- unused variable
//br_error e; // Pierre-Marie Baty -- unused variable
LOG_TRACE("(%p, %p, %p, %d)", self, src, dirty, num_rects);
NOT_IMPLEMENTED();
}
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_copyToDirty(br_device_pixelmap *self, br_device_pixelmap *src, br_rectangle *dirty, br_int_32 num_rects)
br_error _M_br_device_pixelmap_gen_copyToDirty(br_device_pixelmap* self, br_device_pixelmap* src, br_rectangle* dirty, br_int_32 num_rects) {
//int i; // Pierre-Marie Baty -- unused variable
//br_point p; // Pierre-Marie Baty -- unused variable
//br_error e; // Pierre-Marie Baty -- unused variable
LOG_TRACE("(%p, %p, %p, %d)", self, src, dirty, num_rects);
NOT_IMPLEMENTED();
}
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_copyFromDirty(br_device_pixelmap *self, br_device_pixelmap *src, br_rectangle *dirty, br_int_32 num_rects)
br_error _M_br_device_pixelmap_gen_copyFromDirty(br_device_pixelmap* self, br_device_pixelmap* src, br_rectangle* dirty, br_int_32 num_rects) {
//int i; // Pierre-Marie Baty -- unused variable
//br_point p; // Pierre-Marie Baty -- unused variable
//br_error e; // Pierre-Marie Baty -- unused variable
LOG_TRACE("(%p, %p, %p, %d)", self, src, dirty, num_rects);
NOT_IMPLEMENTED();
}
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_fillDirty(br_device_pixelmap *self, br_uint_32 colour, br_rectangle *dirty, br_int_32 num_rects)
br_error _M_br_device_pixelmap_gen_fillDirty(br_device_pixelmap* self, br_uint_32 colour, br_rectangle* dirty, br_int_32 num_rects) {
//int i; // Pierre-Marie Baty -- unused variable
//br_error e; // Pierre-Marie Baty -- unused variable
LOG_TRACE("(%p, %d, %p, %d)", self, colour, dirty, num_rects);
NOT_IMPLEMENTED();
}
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_doubleBufferDirty(br_device_pixelmap *self, br_device_pixelmap *src, br_rectangle *dirty, br_int_32 num_rects)
br_error _M_br_device_pixelmap_gen_doubleBufferDirty(br_device_pixelmap* self, br_device_pixelmap* src, br_rectangle* dirty, br_int_32 num_rects) {
//int i; // Pierre-Marie Baty -- unused variable
//br_point p; // Pierre-Marie Baty -- unused variable
//br_error e; // Pierre-Marie Baty -- unused variable
LOG_TRACE("(%p, %p, %p, %d)", self, src, dirty, num_rects);
NOT_IMPLEMENTED();
}
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_rectangle(br_device_pixelmap *self, br_rectangle *rect, br_uint_32 colour)
br_error _M_br_device_pixelmap_gen_rectangle(br_device_pixelmap* self, br_rectangle* rect, br_uint_32 colour) {
//br_point tl; // Pierre-Marie Baty -- unused variable
//br_point tr; // Pierre-Marie Baty -- unused variable
//br_point bl; // Pierre-Marie Baty -- unused variable
//br_point br; // Pierre-Marie Baty -- unused variable
//br_error e; // Pierre-Marie Baty -- unused variable
LOG_TRACE("(%p, %p, %d)", self, rect, colour);
NOT_IMPLEMENTED();
}
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_rectangle2(br_device_pixelmap *self, br_rectangle *rect, br_uint_32 colour_tl, br_uint_32 colour_br)
br_error _M_br_device_pixelmap_gen_rectangle2(br_device_pixelmap* self, br_rectangle* rect, br_uint_32 colour_tl, br_uint_32 colour_br) {
//br_point tl; // Pierre-Marie Baty -- unused variable
//br_point tr; // Pierre-Marie Baty -- unused variable
//br_point bl; // Pierre-Marie Baty -- unused variable
//br_point br; // Pierre-Marie Baty -- unused variable
//br_error e; // Pierre-Marie Baty -- unused variable
LOG_TRACE("(%p, %p, %d, %d)", self, rect, colour_tl, colour_br);
NOT_IMPLEMENTED();
}
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_line(br_device_pixelmap *self, br_point *s, br_point *e, br_uint_32 colour)
br_error _M_br_device_pixelmap_gen_line(br_device_pixelmap* self, br_point* s, br_point* e, br_uint_32 colour) {
//int dx; // Pierre-Marie Baty -- unused variable
//int dy; // Pierre-Marie Baty -- unused variable
//int incr1; // Pierre-Marie Baty -- unused variable
//int incr2; // Pierre-Marie Baty -- unused variable
//int D; // Pierre-Marie Baty -- unused variable
//int x; // Pierre-Marie Baty -- unused variable
//int y; // Pierre-Marie Baty -- unused variable
//int xend; // Pierre-Marie Baty -- unused variable
//int c; // Pierre-Marie Baty -- unused variable
//int pixels_left; // Pierre-Marie Baty -- unused variable
//int x1; // Pierre-Marie Baty -- unused variable
//int y1; // Pierre-Marie Baty -- unused variable
//int sign_x; // Pierre-Marie Baty -- unused variable
//int sign_y; // Pierre-Marie Baty -- unused variable
//int step; // Pierre-Marie Baty -- unused variable
//int reverse; // Pierre-Marie Baty -- unused variable
//int i; // Pierre-Marie Baty -- unused variable
//br_point as; // Pierre-Marie Baty -- unused variable
//br_point ae; // Pierre-Marie Baty -- unused variable
//br_point p; // Pierre-Marie Baty -- unused variable
LOG_TRACE("(%p, %p, %p, %d)", self, s, e, colour);
NOT_IMPLEMENTED();
}
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_text(br_device_pixelmap *self, br_point *point, br_font *font, char *text, br_uint_32 colour)
br_error _M_br_device_pixelmap_gen_text(br_device_pixelmap* self, br_point* point, br_font* font, char* text, br_uint_32 colour) {
br_rectangle r;
br_point p;
br_int_32 x;
br_int_32 y;
br_int_32 s_stride;
LOG_TRACE("(%p, %p, %p, \"%s\", %d)", self, point, font, text, colour);
x = self->pm_origin_x + point->x;
y = self->pm_origin_y + point->y;
r.h = font->glyph_y;
if (-r.h >= y || y >= self->pm_height || x >= self->pm_width) {
return 0;
}
p.x = point->x;
p.y = point->y;
r.x = 0;
r.y = 0;
if ((font->flags & BR_FONTF_PROPORTIONAL) == 0) {
r.w = font->glyph_x;
s_stride = (r.w + 7) / 8;
while (*text != '\0') {
if (x + r.w > 0) {
self->dispatch->_copyBits(self, &p, &font->glyphs[font->encoding[(unsigned)*text]], s_stride, &r, colour);
}
x += r.w + 1;
p.x += r.w + 1;
if (x > self->pm_width) {
return 0;
}
text++;
}
} else {
while (*text != '\0') {
r.w = font->width[*(br_uint_8*)text];
s_stride = (r.w + 7) / 8;
if (x + r.w > 0) {
self->dispatch->_copyBits(self, &p, &font->glyphs[font->encoding[*(br_uint_8*)text]], s_stride, &r, colour);
}
x += r.w + 1;
p.x += r.w + 1;
if (x > self->pm_width) {
return 0;
}
text++;
}
}
return 0;
}
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_textBounds(br_device_pixelmap *self, br_rectangle *rect, br_font *font, char *text)
br_error _M_br_device_pixelmap_gen_textBounds(br_device_pixelmap* self, br_rectangle* rect, br_font* font, char* text) {
//int i; // Pierre-Marie Baty -- unused variable
//int j; // Pierre-Marie Baty -- unused variable
LOG_TRACE("(%p, %p, %p, \"%s\")", self, rect, font, text);
NOT_IMPLEMENTED();
}
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_copyBits(br_device_pixelmap *self, br_point *point, br_uint_8 *src, br_uint_16 s_stride, br_rectangle *bit_rect, br_uint_32 colour)
br_error _M_br_device_pixelmap_gen_copyBits(br_device_pixelmap* self, br_point* point, br_uint_8* src, br_uint_16 s_stride, br_rectangle* bit_rect, br_uint_32 colour) {
//br_int_32 x; // Pierre-Marie Baty -- unused variable
//br_int_32 y; // Pierre-Marie Baty -- unused variable
//br_point p; // Pierre-Marie Baty -- unused variable
LOG_TRACE("(%p, %p, %p, %d, %p, %d)", self, point, src, s_stride, bit_rect, colour);
NOT_IMPLEMENTED();
}
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_flush(br_device_pixelmap *self)
br_error _M_br_device_pixelmap_gen_flush(br_device_pixelmap* self) {
LOG_TRACE("(%p)", self);
return 0;
}
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_synchronise(br_device_pixelmap *self, br_token sync_type, br_boolean block)
br_error _M_br_device_pixelmap_gen_synchronise(br_device_pixelmap* self, br_token sync_type, br_boolean block) {
LOG_TRACE("(%p, %d, %d)", self, sync_type, block);
return 0;
}
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_directLock(br_device_pixelmap *self, br_boolean block)
br_error _M_br_device_pixelmap_gen_directLock(br_device_pixelmap* self, br_boolean block) {
LOG_TRACE("(%p, %d)", self, block);
return 0;
}
// IDA: br_error __cdecl _M_br_device_pixelmap_gen_directUnlock(br_device_pixelmap *self)
br_error _M_br_device_pixelmap_gen_directUnlock(br_device_pixelmap* self) {
LOG_TRACE("(%p)", self);
return 0;
}