FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix two trivial implicit double to int conversion warnings. NFC · KmolYuan/solvespace@6017ecd · GitHub

Repository navigation

Commit 6017ecd

Browse files
authored andcommitted
Fix two trivial implicit double to int conversion warnings. NFC
1 parent c29624f commit 6017ecd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/render/rendergl3.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,8 +693,8 @@ void OpenGl3Renderer::Clear() {
693693
}
694694

695695
std::shared_ptr<Pixmap> OpenGl3Renderer::ReadFrame() {
696-
int width = camera.width * camera.pixelRatio;
697-
int height = camera.height * camera.pixelRatio;
696+
int width = (int)(camera.width * camera.pixelRatio);
697+
int height = (int)(camera.height * camera.pixelRatio);
698698
std::shared_ptr<Pixmap> pixmap =
699699
Pixmap::Create(Pixmap::Format::RGBA, (size_t)width, (size_t)height);
700700
glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, &pixmap->data[0]);

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL