Skip to content

Commit

Permalink
dont use oversampling
Browse files Browse the repository at this point in the history
  • Loading branch information
redthing1 committed Nov 13, 2022
1 parent 8a8ea0d commit c5241b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion demo/nuidemo/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class Game : Core {
this() {
sync_render_window_resolution = true;
auto_compensate_hidpi = true;
// auto_oversample_hidpi = true;

super(WIDTH, HEIGHT, "nuidemo");
}
Expand Down
3 changes: 1 addition & 2 deletions demo/nuidemo/source/gui_root.d
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ class GuiRoot : Component, Renderable2D, Updatable {
bg = ColorToNuklearF(Colors.SKYBLUE);
auto ui_font = raylib.LoadFontEx("./res/SourceSansPro-Regular.ttf", UI_FS, null, 0);
ctx = InitNuklearEx(ui_font, UI_FS);
// ctx.backend_render_scale = cast(int) (Core.window.scale_dpi * Core.render_oversample);
ctx.backend_render_scale = cast(int)(Core.window.scale_dpi);
ctx.backend_render_scale = cast(int) (Core.window.scale_dpi);

// nk_color[nk_style_colors.NK_COLOR_COUNT] table;
// table[nk_style_colors.NK_COLOR_TEXT] = nk_rgba(190, 190, 190, 255);
Expand Down

0 comments on commit c5241b4

Please sign in to comment.