Skip to content
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

Add auto restart feature #62

Closed
wants to merge 3 commits into from
Closed

Conversation

Cheerpipe
Copy link
Contributor

@Cheerpipe Cheerpipe commented May 10, 2021

This PR add:

  • Ability to autorestart theLayer Brush and create a new CaptureService. I used a Feature to handle the Display Setting change event. Don’t know if there is a better way.

    • Restart Layer brush feature and create a new CaptureService if display settings is changed.

This PR fixes #60 #61

This commit also fix several exceptions that ocurrs when capture area goes beyond layer display resolution boundaries.

Know bugs:
Ambilight layer brush feature will result disabled if display settings is changed while Artemis Editor is opened. Still better than profile and layer brush hang up on display setting changed. Work ok with editor closed.

Notes:

  • Ambilight capture code was not touched. Just brush and UI viewmodel was modified.

Restart Layer brush feature and create a new CaptureService if display settings is changed.

This commit also fix Exceptions when capture area goes beyond layer display resolution boundaries.

I created a feature as it appear to be the cleaner way to do this but not 100% sure if i am correct.
@RobertBeekman
Copy link
Member

RobertBeekman commented May 10, 2021

Hey, the PR is still a draft and being worked on by DarthAffe.

He'll probably want to fix this in his screen capture DLL which isn't part of the plugin code

@Cheerpipe Cheerpipe closed this May 10, 2021
@RobertBeekman RobertBeekman reopened this May 10, 2021
@RobertBeekman
Copy link
Member

No need to close this already! He may want to merge it :)

@Cheerpipe
Copy link
Contributor Author

No need to close this already! He may want to merge it :)

Oops ok.

@RobertBeekman
Copy link
Member

I have manually incorporated some of these changes alongside my own, thanks 👍🏻

@Cheerpipe
Copy link
Contributor Author

Nice, I am more comfortable with your code that with mine XD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants