-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Characters flow out the line if wrapmode is nowrap #21
Comments
Is there any easy way to reproduce this issue? I mean without having to use Hollywood? A simple example in C perhaps? |
Any hint for me? |
I am quite positive that this bug is because of an incompatibility with the layers.library on that system. I suppose the culprit is this line:
If the layer allocation (for the doublebuffering rastport) fails for some reason, you still have a doublebuffer rastport but a non layered one. So the above line decides not to AddClipping(). I hope this is a clue. |
Not exactly. The "doublebuffer" variable is a parameter passed to the PrintLine() function. Hence the calling function decides whether to use double buffering or not. But you are right, if installing the clipping region fails the rendering is done to the double buffered RastPort, but without clipping. And this perfecly explains the misbehaviour. Which version of layers.library are talking here about exactly? I am using layers.library 45.22 (3.10.2014), which is not even the latest version (http://aminet.net/util/sys/layers.lha). |
Hmm. I went through the code once again and I think we both are wrong. You're right about doublebuffer variable but, when PrintLine() caller decides to not use doublebuffering, the code then uses data->copyrp (which should be the objects rastport) with MUI_AddClipping() (not the other way around as you've stated). And let's assume doublerp failed at initialization because of layers.library, then data->doublerp should be NULL and PrintLine() should again always fallback to use data->copyrp with MUI_AddClipping() (that's where I was wrong). So whenever data->doublerp is not NULL (and PrintLine() is called with doublebuffer), such a behaviour can never occur. Because we always blit from the 0,0 coordinates of doublerp. It seems not possible to me. So somethings must be going wrong in MUI_AddClipping() on that system. It maybe is again a layers.library issue if MUI_AddClipping() is depending on it. |
Sorry for the long delay. |
Bump! |
When the texteditor gadget has MUIV_TextEditor_WrapMode_NoWrap for wrapmode and moving the cursor to the right or left border make the content scroll one character the line does flow out the text area.
As the image shown:
https://s5.postimg.org/xwayj5xnb/textcraft.jpg
The text was updated successfully, but these errors were encountered: