Le Philousophe
087eb6005c
GRAPHICS: Fix triangle rendering with some aspect ratios
...
The test to detect we cross an integer doesn't take into account 0.5
steps
When w = 9 and h = 7, you get dx = 4, dx = 5 and gradient = 0.5
In this case you never get interx + gradient > ipart(interx) + 1 when
interx is an integer.
2021-06-20 12:30:20 +02:00
Le Philousophe
66c78dc25a
GRAPHICS: Ensure we still have space to draw the shadow
...
Else we get ptr_tl and ptr_tr reversed which causes bugs when filling
pixels
2021-06-20 11:48:19 +02:00
Martin Gerhardy
28b1a020d3
GRAPHICS: fixed formatting
2021-06-19 14:34:52 +02:00
ysj1173886760
d30e009eff
GRAPHICS: MACGUI: fix regression of scrolling cursor in mactext
2021-06-13 00:41:26 +02:00
ysj1173886760
ce11b8efb9
GRAPHICS: MACGUI: small fix for getRowCol in mactext to suit for new offset system
2021-06-13 00:41:26 +02:00
ysj1173886760
e18b26d69e
GRAPHICS: MACGUI: clean most of the offset in mactext
2021-06-13 00:41:26 +02:00
ysj1173886760
e575393e52
GRAPHICS: MACGUI: fix the cursor position calculating in mactext
2021-06-13 00:41:26 +02:00
djsrv
7baac7da4d
GRAPHICS: MACGUI: Fix out of bounds array access
2021-06-10 10:58:27 -04:00
djsrv
8ac995cf8a
GRAPHICS: MACGUI: Allow selection to be drawn on inactive text
...
Hilite can select text on an inactive text field
2021-06-10 10:57:19 -04:00
ysj1173886760
73916d9aca
GRAPHICS: MACGUI: remove a case which has already been checked before in macWM
2021-06-10 13:58:41 +02:00
ysj1173886760
86e21663d5
GRAPHICS: MACGUI: fix setSelection offset in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
34972626d4
GRAPHICS: MACGUI: remove the selection after we set maxWidth in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
4c3630f648
GRAPHICS: MACGUI: undraw the cursor when we are selecting in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
9b262360ed
GRAPHICS: MACGUI: complete setMaxWidth in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
24821716db
GRAPHICS: MACGUI: fix drawing selection when we have a not complete line in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
8caf7abf4a
GRAPHICS: MACGUI: fix getRowCol when we have text alignment, modify the behaviour when we drawing selection in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
68f0483458
GRAPHICS: MACGUI: enhance getRowCol in mactext by using bsearch
2021-06-10 13:58:41 +02:00
ysj1173886760
d02ec882de
GRAPHICS: MACGUI: fix selection drawing when we have text alignments in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
5e734b0ca0
GRAPHICS: MACGUI: fix cursor drawing when we scroll the mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
777a8c1d17
GRAPHICS: MACGUI: modify the logic when we are calculating PureTextSize in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
51698610d2
GRAPHICS: MACGUI: inherit paragraphEnd when we adding new line in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
12232c992a
GRAPHICS: MACGUI: fix calculating the pure text size in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
bdf81ad565
GRAPHICS: MACGUI: fix the copy/paste operations when we have multi-paragraph selection in mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
88541a8303
GRAPHICS: MACGUI: fix the behaviour when the selEnd and selStart has the same value, currently, we will move the cursor here, just as director does
2021-06-10 13:58:41 +02:00
ysj1173886760
0f7e7bd462
GRAPHICS: MACGUI: disable the ability of setting active in setEditable. currently, director will only set the first editable text widget to active
2021-06-10 13:58:41 +02:00
ysj1173886760
dea9455a96
GRAPHICS: MACGUI: introduce two variable to lingo, _selEnd and _selStart, which has default value -1. selEnd and selStart specify the selection area every time you activated the mactext
2021-06-10 13:58:41 +02:00
ysj1173886760
0467fa91cc
GRAPHICS: MACGUI: clear the selection and cursor after we de-activated the mactext. refresh mactext every time we change the active status
2021-06-10 13:58:41 +02:00
Eugene Sandulenko
b25e58ece6
GRAPHICS: Added more info on 9-patch images
2021-06-09 21:50:07 +02:00
Martin Gerhardy
b3241ea04a
TWINE: use Graphics::Screen
2021-06-03 22:07:26 +02:00
ysj1173886760
4419ae9a0b
GRAPHICS: MACGUI: add default format before we are using the text from global clipboard
2021-06-03 13:19:10 +02:00
ysj1173886760
d4abe958bd
GRAPHICS: MACGUI: clean code for WM clipboard operations
2021-06-03 13:19:10 +02:00
ysj1173886760
e7e09e6bee
GRAPHICS: MACGUI: make mactextwindow suit for new WM clipboard
2021-06-03 13:19:10 +02:00
ysj1173886760
c88b6e2e04
GRAPHICS: MACGUI: move WM clipboard operations from mactext to macwindowmanager
2021-06-03 13:19:10 +02:00
ysj1173886760
43826c7839
GRAPHICS: MACGUI: clean the code for stripFormat in mactext
2021-06-03 13:19:10 +02:00
ysj1173886760
a5e6f59533
GRAPHICS: MACGUI: implement getTextFromClipboard and setTextInClipboard for mactext
2021-06-03 13:19:10 +02:00
ysj1173886760
f68b3736a3
GRAPHICS: MACGUI: add clipboard which can help saving format from mactext for wm
2021-06-03 13:19:10 +02:00
ysj1173886760
8f36696f0f
GRAPHICS: MACGUI: clean code for code analyse
2021-06-03 13:19:10 +02:00
ysj1173886760
f89977b4a2
GRAPHICS: MACGUI: fix and add the basic text operations in mactextwindow which is used in WAGE
2021-06-03 13:19:10 +02:00
ysj1173886760
924b7e1e08
GRAPHICS: MACGUI: fix incorrect offset calculating when drawing selection in mactext
2021-06-03 13:19:10 +02:00
ysj1173886760
ecac522c7f
GRAPHICS: MACGUI: make mactext can scrollable now
2021-06-03 13:19:10 +02:00
ysj1173886760
eda07a54be
GRAPHICS: MACGUI: modify the behaviour when we inserting character when we have selection in mactext
2021-06-03 13:19:10 +02:00
ysj1173886760
f320de75ff
GRAPHICS: MACGUI: implement delete to mactext by using existing functions
2021-06-03 13:19:10 +02:00
ysj1173886760
1b92db9f80
GRAPHICS: MACGUI: fix incorrect selection drawing when mactext is not active
2021-06-03 13:19:10 +02:00
ysj1173886760
f0763f44cc
GRAPHICS: MACGUI: fix the cursor position when using paste in mactext
2021-06-03 13:19:10 +02:00
ysj1173886760
4d4ad3c310
GRAPHICS: MACGUI: bring copy, paste, cut to mactext. currently, we are using copy with formatting
2021-06-03 13:19:10 +02:00
ysj1173886760
73b10b3e5e
GRAPHICS: MACGUI: clean the surface when we are drawing selection in mactext
2021-06-03 13:19:10 +02:00
ysj1173886760
bd6887a6ea
GRAPHICS: MACGUI: implement deleteSelection by using deletePreviousChar
2021-06-03 13:19:10 +02:00
ysj1173886760
cfac0f0513
GRAPHICS: MACGUI: add offset to drawSelection
2021-06-03 13:19:10 +02:00
ysj1173886760
b11dfdfeaa
GRAPHICS: MACGUI: change the behavior of cursor and selectedText, currently, we won't draw the cursor when we have selectedText
2021-06-03 13:19:10 +02:00
ysj1173886760
0176107051
GRAPHICS: MACGUI: add a check when we disabling the hoveredWidget
2021-06-03 13:19:10 +02:00