2016-05-30 03:28:29 +00:00
|
|
|
#include "editor_scale.h"
|
|
|
|
#include "os/os.h"
|
|
|
|
|
2016-09-13 14:05:47 +00:00
|
|
|
static float scale = 1.0;
|
2016-06-05 21:43:45 +00:00
|
|
|
|
2016-09-13 14:05:47 +00:00
|
|
|
void editor_set_scale(float p_scale) {
|
2016-06-05 21:43:45 +00:00
|
|
|
|
2016-09-13 14:05:47 +00:00
|
|
|
scale=p_scale;
|
2016-06-05 21:43:45 +00:00
|
|
|
}
|
2016-09-13 14:05:47 +00:00
|
|
|
float editor_get_scale() {
|
2016-06-05 21:43:45 +00:00
|
|
|
|
2016-09-13 14:05:47 +00:00
|
|
|
return scale;
|
2016-05-30 03:28:29 +00:00
|
|
|
}
|