{"action":"opened","issue":{"url":"https://api.github.com/repos/vurtun/nuklear/issues/472","repository_url":"https://api.github.com/repos/vurtun/nuklear","labels_url":"https://api.github.com/repos/vurtun/nuklear/issues/472/labels{/name}","comments_url":"https://api.github.com/repos/vurtun/nuklear/issues/472/comments","events_url":"https://api.github.com/repos/vurtun/nuklear/issues/472/events","html_url":"https://github.com/vurtun/nuklear/issues/472","id":239712347,"number":472,"title":"line_thickness<=0","user":{"login":"Ryszard-Trojnacki","id":7201935,"avatar_url":"https://avatars1.githubusercontent.com/u/7201935?v=3","gravatar_id":"","url":"https://api.github.com/users/Ryszard-Trojnacki","html_url":"https://github.com/Ryszard-Trojnacki","followers_url":"https://api.github.com/users/Ryszard-Trojnacki/followers","following_url":"https://api.github.com/users/Ryszard-Trojnacki/following{/other_user}","gists_url":"https://api.github.com/users/Ryszard-Trojnacki/gists{/gist_id}","starred_url":"https://api.github.com/users/Ryszard-Trojnacki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ryszard-Trojnacki/subscriptions","organizations_url":"https://api.github.com/users/Ryszard-Trojnacki/orgs","repos_url":"https://api.github.com/users/Ryszard-Trojnacki/repos","events_url":"https://api.github.com/users/Ryszard-Trojnacki/events{/privacy}","received_events_url":"https://api.github.com/users/Ryszard-Trojnacki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-30T08:35:07Z","updated_at":"2017-06-30T08:35:07Z","closed_at":null,"body":"I'm trying to remove border from Button or Window. I know I can do this with:\r\n```c\r\nstyle.border=0;\r\nstyle.border_color=nk_color(0,0,0,0);\r\n```\r\nBut I don't understand why draw commands like `nk_stroke_line, nk_stroke_curve, nk_stroke_rect, nk_draw_list_stroke_poly_line, ...` is drawing with `line_thickness<=0`. Shouldn't it skip drawing it shuch situation?\r\n```c\r\nif(line_thickness<=0) return;  // ignore drawing when line_thickness<=0 - invisible\r\n```\r\nThen I could just write:\r\n```c\r\nstyle.border=0;\r\n```\r\nand it would work without drawing invisible (transparent) lines - less drawing commands and more logic (I think)."}}
{"actor":{"display_login":"Ryszard-Trojnacki"}}