Reduced the Cairo command entry size

This commit is contained in:
Maciej Suminski 2016-12-09 16:00:53 +01:00
parent 660e4ca9d4
commit a2a950fdae
2 changed files with 4 additions and 2 deletions

View File

@ -594,12 +594,14 @@ void CAIRO_GAL::DrawGroup( int aGroupNumber )
cairo_fill( currentContext ); cairo_fill( currentContext );
break; break;
/*
case CMD_TRANSFORM: case CMD_TRANSFORM:
cairo_matrix_t matrix; cairo_matrix_t matrix;
cairo_matrix_init( &matrix, it->argument.dblArg[0], it->argument.dblArg[1], it->argument.dblArg[2], cairo_matrix_init( &matrix, it->argument.dblArg[0], it->argument.dblArg[1], it->argument.dblArg[2],
it->argument.dblArg[3], it->argument.dblArg[4], it->argument.dblArg[5] ); it->argument.dblArg[3], it->argument.dblArg[4], it->argument.dblArg[5] );
cairo_transform( currentContext, &matrix ); cairo_transform( currentContext, &matrix );
break; break;
*/
case CMD_ROTATE: case CMD_ROTATE:
cairo_rotate( currentContext, it->argument.dblArg[0] ); cairo_rotate( currentContext, it->argument.dblArg[0] );

View File

@ -296,7 +296,7 @@ private:
wxBitmap* cursorPixelsSaved; ///< Saved cursor pixels wxBitmap* cursorPixelsSaved; ///< Saved cursor pixels
/// Maximum number of arguments for one command /// Maximum number of arguments for one command
static const int MAX_CAIRO_ARGUMENTS = 6; static const int MAX_CAIRO_ARGUMENTS = 4;
/// Definitions for the command recorder /// Definitions for the command recorder
enum GRAPHICS_COMMAND enum GRAPHICS_COMMAND
@ -308,7 +308,7 @@ private:
CMD_SET_LINE_WIDTH, ///< Set the line width CMD_SET_LINE_WIDTH, ///< Set the line width
CMD_STROKE_PATH, ///< Set the stroke path CMD_STROKE_PATH, ///< Set the stroke path
CMD_FILL_PATH, ///< Set the fill path CMD_FILL_PATH, ///< Set the fill path
CMD_TRANSFORM, ///< Transform the actual context //CMD_TRANSFORM, ///< Transform the actual context
CMD_ROTATE, ///< Rotate the context CMD_ROTATE, ///< Rotate the context
CMD_TRANSLATE, ///< Translate the context CMD_TRANSLATE, ///< Translate the context
CMD_SCALE, ///< Scale the context CMD_SCALE, ///< Scale the context