-
Notifications
You must be signed in to change notification settings - Fork 552
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
✨CGS Update part 2 (Remastered) #3087
Conversation
This function copies a fragment of your video buffer, and returns it as Bitmap.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the work. The code is very clean! Just this one repeated question about why we are making certain variables public
@@ -35,7 +35,7 @@ private enum VideoDriver | |||
VGADriver | |||
} | |||
|
|||
static Canvas videoDriver = null; | |||
public static Canvas videoDriver = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this to be public?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so you can directly access framebuffer and many driver stuff
- CopyVRAM
- GetVRAM
- SetVRAM
- ClearVRAM
- Fill
Also i think that people should have direct access to grapic driver, only positives
private Mode mode; | ||
private readonly VMWareSVGAII driver; | ||
public Mode mode; | ||
public readonly VMWareSVGAII driver; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question here
readonly VBEDriver driver; | ||
Mode mode; | ||
public readonly VBEDriver driver; | ||
public Mode mode; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
This time nice and clean!
Added
Note: I didn't add XML to the override voids, as the others don't have them either. XML comments are always above virtual/abstract voids. Writing this because of my last pr hihi