plot_set_scale return old scale now.
This commit is contained in:
parent
e9f2c3a9bf
commit
571b8e0167
|
@ -865,6 +865,7 @@ static void snapshot_suspend(void)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef WITH_8BPP_SUPPORT
|
||||
if(size_buf_std > CONV_KEEP_LIMIT ) {
|
||||
buf_std.fd_addr = realloc(
|
||||
buf_std.fd_addr, CONV_KEEP_LIMIT
|
||||
|
@ -875,6 +876,7 @@ static void snapshot_suspend(void)
|
|||
size_buf_std = 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if(buf_scr_compat != NULL ) {
|
||||
size_t bs = bitmap_buffer_size(buf_scr_compat );
|
||||
|
@ -1901,9 +1903,19 @@ bool plot_get_dimensions(GRECT *dst)
|
|||
return(true);
|
||||
}
|
||||
|
||||
bool plot_set_scale(float scale)
|
||||
/**
|
||||
* set scale of plotter.
|
||||
* \param scale the new scale value
|
||||
* \return the old scale value
|
||||
*/
|
||||
|
||||
float plot_set_scale(float scale)
|
||||
{
|
||||
float ret = view.scale;
|
||||
|
||||
view.scale = scale;
|
||||
|
||||
return(ret);
|
||||
}
|
||||
|
||||
float plot_get_scale()
|
||||
|
|
|
@ -108,7 +108,7 @@ bool plot_unlock(void);
|
|||
bool plot_set_dimensions( int x, int y, int w, int h );
|
||||
bool plot_get_dimensions(GRECT *dst);
|
||||
float plot_get_scale(void);
|
||||
bool plot_set_scale(float);
|
||||
float plot_set_scale(float);
|
||||
bool plot_get_clip(struct rect * out);
|
||||
/* Get clipping for current framebuffer as GRECT */
|
||||
void plot_get_clip_grect(GRECT * out);
|
||||
|
|
Loading…
Reference in New Issue