{"action":"created","issue":{"url":"https://api.github.com/repos/LiMinggang/madedit-mod/issues/265","repository_url":"https://api.github.com/repos/LiMinggang/madedit-mod","labels_url":"https://api.github.com/repos/LiMinggang/madedit-mod/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/LiMinggang/madedit-mod/issues/265/comments","events_url":"https://api.github.com/repos/LiMinggang/madedit-mod/issues/265/events","html_url":"https://github.com/LiMinggang/madedit-mod/issues/265","id":317861196,"number":265,"title":"high cpu load when move mouse over textlines","user":{"login":"ooab","id":38742618,"avatar_url":"https://avatars3.githubusercontent.com/u/38742618?v=4","gravatar_id":"","url":"https://api.github.com/users/ooab","html_url":"https://github.com/ooab","followers_url":"https://api.github.com/users/ooab/followers","following_url":"https://api.github.com/users/ooab/following{/other_user}","gists_url":"https://api.github.com/users/ooab/gists{/gist_id}","starred_url":"https://api.github.com/users/ooab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ooab/subscriptions","organizations_url":"https://api.github.com/users/ooab/orgs","repos_url":"https://api.github.com/users/ooab/repos","events_url":"https://api.github.com/users/ooab/events{/privacy}","received_events_url":"https://api.github.com/users/ooab/received_events","type":"User","site_admin":false},"labels":[{"id":45281592,"url":"https://api.github.com/repos/LiMinggang/madedit-mod/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"LiMinggang","id":4847132,"avatar_url":"https://avatars2.githubusercontent.com/u/4847132?v=4","gravatar_id":"","url":"https://api.github.com/users/LiMinggang","html_url":"https://github.com/LiMinggang","followers_url":"https://api.github.com/users/LiMinggang/followers","following_url":"https://api.github.com/users/LiMinggang/following{/other_user}","gists_url":"https://api.github.com/users/LiMinggang/gists{/gist_id}","starred_url":"https://api.github.com/users/LiMinggang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiMinggang/subscriptions","organizations_url":"https://api.github.com/users/LiMinggang/orgs","repos_url":"https://api.github.com/users/LiMinggang/repos","events_url":"https://api.github.com/users/LiMinggang/events{/privacy}","received_events_url":"https://api.github.com/users/LiMinggang/received_events","type":"User","site_admin":false},"assignees":[{"login":"LiMinggang","id":4847132,"avatar_url":"https://avatars2.githubusercontent.com/u/4847132?v=4","gravatar_id":"","url":"https://api.github.com/users/LiMinggang","html_url":"https://github.com/LiMinggang","followers_url":"https://api.github.com/users/LiMinggang/followers","following_url":"https://api.github.com/users/LiMinggang/following{/other_user}","gists_url":"https://api.github.com/users/LiMinggang/gists{/gist_id}","starred_url":"https://api.github.com/users/LiMinggang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiMinggang/subscriptions","organizations_url":"https://api.github.com/users/LiMinggang/orgs","repos_url":"https://api.github.com/users/LiMinggang/repos","events_url":"https://api.github.com/users/LiMinggang/events{/privacy}","received_events_url":"https://api.github.com/users/LiMinggang/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/LiMinggang/madedit-mod/milestones/20","html_url":"https://github.com/LiMinggang/madedit-mod/milestone/20","labels_url":"https://api.github.com/repos/LiMinggang/madedit-mod/milestones/20/labels","id":3272545,"number":20,"title":"0.4.13","description":null,"creator":{"login":"LiMinggang","id":4847132,"avatar_url":"https://avatars2.githubusercontent.com/u/4847132?v=4","gravatar_id":"","url":"https://api.github.com/users/LiMinggang","html_url":"https://github.com/LiMinggang","followers_url":"https://api.github.com/users/LiMinggang/followers","following_url":"https://api.github.com/users/LiMinggang/following{/other_user}","gists_url":"https://api.github.com/users/LiMinggang/gists{/gist_id}","starred_url":"https://api.github.com/users/LiMinggang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiMinggang/subscriptions","organizations_url":"https://api.github.com/users/LiMinggang/orgs","repos_url":"https://api.github.com/users/LiMinggang/repos","events_url":"https://api.github.com/users/LiMinggang/events{/privacy}","received_events_url":"https://api.github.com/users/LiMinggang/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":3,"state":"open","created_at":"2018-04-17T03:07:01Z","updated_at":"2018-04-26T03:47:47Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2018-04-26T03:05:08Z","updated_at":"2018-04-27T02:17:31Z","closed_at":"2018-04-26T03:47:46Z","author_association":"NONE","body":"**Please provide the following information**\r\n\r\nMadedit-Mod version (or branch): 0.4.11, 0.4.12\r\n\r\nplatform/architecture: windows7 64bit\r\n\r\ncompiler and compiler version: \r\n\r\nplease describe what symptom you see, what you would expect to see instead and how to reproduce it.\r\n\r\nOpen a text file, move mouse over textlines continuously, cpu(single core) percentage increases to 25% rapidly. At the same time, the curor show Beam and Arrow alternately.\r\n\r\ntwo PC tested:\r\n1. Thinkpad T470, windows7 64bit, high cpu load\r\n2.  Old desktop PC, windows7 64bit, no problem\r\n\r\nwhen comment out this line:\r\nvoid MadEdit::OnMouseMotion( wxMouseEvent &evt ) \r\n{\r\n    if( m_MouseInWindow ) \r\n    {\r\n        **//UpdateCursor( evt.m_x, evt.m_y );** \r\n    }\r\n}\r\ncpu load dropped back to a normal level on both computers.  \r\ncompare to code of MadEdit 0.29,  \r\nnew versions comment out several lines in function UpdateCursor()\r\nwxSetCursor( XXXCursor );\r\n**SetCursor(XXXCursor);** \r\n\r\nif I restore the calls to SetCursor(XXXCursor), my builds works on both computers.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/LiMinggang/madedit-mod/issues/comments/384843544","html_url":"https://github.com/LiMinggang/madedit-mod/issues/265#issuecomment-384843544","issue_url":"https://api.github.com/repos/LiMinggang/madedit-mod/issues/265","id":384843544,"user":{"login":"ooab","id":38742618,"avatar_url":"https://avatars3.githubusercontent.com/u/38742618?v=4","gravatar_id":"","url":"https://api.github.com/users/ooab","html_url":"https://github.com/ooab","followers_url":"https://api.github.com/users/ooab/followers","following_url":"https://api.github.com/users/ooab/following{/other_user}","gists_url":"https://api.github.com/users/ooab/gists{/gist_id}","starred_url":"https://api.github.com/users/ooab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ooab/subscriptions","organizations_url":"https://api.github.com/users/ooab/orgs","repos_url":"https://api.github.com/users/ooab/repos","events_url":"https://api.github.com/users/ooab/events{/privacy}","received_events_url":"https://api.github.com/users/ooab/received_events","type":"User","site_admin":false},"created_at":"2018-04-27T02:17:31Z","updated_at":"2018-04-27T02:17:31Z","author_association":"NONE","body":"not replace.  my fix have both calls, for example:\r\nif( m_DragCopyFlag )\r\n{\r\n    wxSetCursor( DragCopyCursor );\r\n    SetCursor(DragCopyCursor);\r\n}\r\nI am new to wxWidgets,  and i am confused by the code, what is the difference between wxSetCursor and SetCursor?\r\nany way, I will try your fix code."}}
{"actor":{"display_login":"ooab"}}