-
-
Notifications
You must be signed in to change notification settings - Fork 392
Open
Description
Drawn rects are twice as big. Haven't tested other shapes.
Code:
use macroquad::{color, prelude::*};
fn window_conf() -> Conf {
Conf {
window_width: 1600, // Set your desired width here
window_height: 1200, // Set your desired height here
window_resizable: false, // Set to true to allow manual resizing by the user
..Default::default() // Other default settings
}
}
#[macroquad::main(window_conf)]
async fn main() {
let rect_size_px = 100.0;
loop {
for i in 0..10 {
for j in 0..10 {
draw_rectangle(
j as f32 * rect_size_px,
i as f32 * rect_size_px,
rect_size_px,
rect_size_px,
color::GREEN
);
}
}
next_frame().await;
}
}
A window with rects filling part of the window was expected.
Macroquad 0.4.14
System info:
Operating System: Kubuntu 25.04
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3
Kernel Version: 6.14.0-32-generic (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 31,3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4090
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7D52
System Version: 1.0
Metadata
Metadata
Assignees
Labels
No labels