Remove useless fl_matrix member variable of class Fl_Graphics_Driver
This commit is contained in:
parent
67817f696c
commit
bc3bbb7ca0
@ -170,11 +170,6 @@ protected:
|
||||
int p_size;
|
||||
typedef struct { float x; float y; } XPOINT;
|
||||
XPOINT *xpoint;
|
||||
#ifndef FL_DOXYGEN
|
||||
inline int vertex_no() { return n; }
|
||||
inline int vertex_kind() {return what;}
|
||||
#endif
|
||||
matrix *fl_matrix; /**< Points to the current coordinate transformation matrix */
|
||||
virtual void global_gc();
|
||||
virtual void cache(Fl_Pixmap *img);
|
||||
virtual void cache(Fl_Bitmap *img);
|
||||
|
@ -50,7 +50,6 @@ Fl_Graphics_Driver::Fl_Graphics_Driver()
|
||||
rstack[0] = NULL;
|
||||
fl_clip_state_number=0;
|
||||
m = m0;
|
||||
fl_matrix = &m;
|
||||
font_descriptor_ = NULL;
|
||||
scale_ = 1;
|
||||
p_size = 0;
|
||||
|
@ -376,12 +376,12 @@ Fl_Color Fl_Cairo_Graphics_Driver::color() { return Fl_Graphics_Driver::color();
|
||||
|
||||
|
||||
void Fl_Cairo_Graphics_Driver::concat(){
|
||||
cairo_matrix_t mat = {fl_matrix->a , fl_matrix->b , fl_matrix->c , fl_matrix->d , fl_matrix->x , fl_matrix->y};
|
||||
cairo_matrix_t mat = {m.a , m.b , m.c , m.d , m.x , m.y};
|
||||
cairo_transform(cairo_, &mat);
|
||||
}
|
||||
|
||||
void Fl_Cairo_Graphics_Driver::reconcat(){
|
||||
cairo_matrix_t mat = {fl_matrix->a , fl_matrix->b , fl_matrix->c , fl_matrix->d , fl_matrix->x , fl_matrix->y};
|
||||
cairo_matrix_t mat = {m.a , m.b , m.c , m.d , m.x , m.y};
|
||||
cairo_status_t stat = cairo_matrix_invert(&mat);
|
||||
if (stat != CAIRO_STATUS_SUCCESS) {
|
||||
fputs("error in cairo_matrix_invert\n", stderr);
|
||||
|
@ -1241,11 +1241,11 @@ void Fl_PostScript_Graphics_Driver::rtl_draw(const char* str, int n, int x, int
|
||||
}
|
||||
|
||||
void Fl_PostScript_Graphics_Driver::concat(){
|
||||
clocale_printf("[%g %g %g %g %g %g] CT\n", fl_matrix->a , fl_matrix->b , fl_matrix->c , fl_matrix->d , fl_matrix->x , fl_matrix->y);
|
||||
clocale_printf("[%g %g %g %g %g %g] CT\n", m.a , m.b , m.c , m.d , m.x , m.y);
|
||||
}
|
||||
|
||||
void Fl_PostScript_Graphics_Driver::reconcat(){
|
||||
clocale_printf("[%g %g %g %g %g %g] RCT\n" , fl_matrix->a , fl_matrix->b , fl_matrix->c , fl_matrix->d , fl_matrix->x , fl_matrix->y);
|
||||
clocale_printf("[%g %g %g %g %g %g] RCT\n" , m.a , m.b , m.c , m.d , m.x , m.y);
|
||||
}
|
||||
|
||||
///////////////// transformed (double) drawings ////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user