blob: d936781077f09853b932283ff1c3a14cf662a470 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "TZR_globals.h"
void
TZR_ScreenTransform(int *x, int *y)
{
if (___tzr_scale == 0.0)
return;
if (x != NULL) {
*x -= ___tzr_off_x;
*x /= ___tzr_scale;
}
if (y != NULL) {
*y -= ___tzr_off_y;
*y /= ___tzr_scale;
}
}
|