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

✨CGS Update part 2 (Remastered) #3087

Merged
merged 12 commits into from
Sep 25, 2024

Conversation

Szymekk44
Copy link
Contributor

This time nice and clean!
Added

  • GetImage (SVGAII & VBE)
  • DrawCroppedImage (You can now draw wallpaper cropped by your taskbar height!)
  • DrawPoint (int)
  • GetRawPoint
  • DrawRectangle has been improved
  • More draw array functions - for int[] (just copying to video buffer!)
  • MANY VBE Bugfixes
  • GetImage tests
  • Finished preventOffBoundPixels (now its working for left side and right side - finished part of CGS Update part 1)

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

Copy link
Member

@quajak quajak left a 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;
Copy link
Member

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?

Copy link
Contributor Author

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;
Copy link
Member

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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

@quajak quajak merged commit e42447d into CosmosOS:master Sep 25, 2024
18 checks passed
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.

2 participants