Skip to content

Commit 2ee3c35

Browse files
committed
make it possible to move dot texture vertically
1 parent 245b458 commit 2ee3c35

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/dot/dotTexture.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
xCenter = cfg.screen.center(1) + thisEvent.dotCenterXPosPix;
1616
yCenter = cfg.screen.center(2);
1717

18+
if isfield(thisEvent, 'dotCenterYPosPix')
19+
yCenter = cfg.screen.center(2) + thisEvent.dotCenterYPosPix;
20+
end
21+
1822
Screen('FillRect', cfg.dot.texture, cfg.color.background);
1923
Screen('DrawDots', cfg.dot.texture, ...
2024
thisEvent.dot.positions, ...

0 commit comments

Comments
 (0)