Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/animation_curve/animation_curve.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ int main()
const int screenWidth = 800;
const int screenHeight = 540;

SetConfigFlags(FLAG_WINDOW_HIGHDPI);

InitWindow(screenWidth, screenHeight, "raygui - animation curves");
SetTargetFPS(60);

Expand Down
2 changes: 2 additions & 0 deletions examples/controls_test_suite/controls_test_suite.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ int main()
const int screenWidth = 960;
const int screenHeight = 560;

SetConfigFlags(FLAG_WINDOW_HIGHDPI);

InitWindow(screenWidth, screenHeight, "raygui - controls test suite");
SetExitKey(0);

Expand Down
2 changes: 2 additions & 0 deletions examples/controls_test_suite/gui_value_box_float.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ int main()
const int screenWidth = 800;
const int screenHeight = 450;

SetConfigFlags(FLAG_WINDOW_HIGHDPI);

InitWindow(screenWidth, screenHeight, "raygui - controls test suite");

float valueBoxValue = 0.0f;
Expand Down
2 changes: 2 additions & 0 deletions examples/custom_file_dialog/custom_file_dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ int main()
int screenWidth = 800;
int screenHeight = 560;

SetConfigFlags(FLAG_WINDOW_HIGHDPI);

InitWindow(screenWidth, screenHeight, "raygui - custom modal dialog");
SetExitKey(0);

Expand Down
2 changes: 2 additions & 0 deletions examples/custom_input_box/custom_input_box.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ int GuiFloatBox(Rectangle bounds, const char* text, float* value, int minValue,

int main()
{
SetConfigFlags(FLAG_WINDOW_HIGHDPI);

InitWindow(250, 100, "Basic calculator");

// General variables
Expand Down
2 changes: 2 additions & 0 deletions examples/custom_sliders/custom_sliders.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ int main()
int screenWidth = 800;
int screenHeight = 450;

SetConfigFlags(FLAG_WINDOW_HIGHDPI);

InitWindow(screenWidth, screenHeight, "raygui - custom sliders");

float value = 0.5f;
Expand Down
2 changes: 2 additions & 0 deletions examples/floating_window/floating_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ static void DrawContent(Vector2 position, Vector2 scroll) {
}

int main(void) {
SetConfigFlags(FLAG_WINDOW_HIGHDPI);

InitWindow(960, 560, "raygui - floating window example");
SetTargetFPS(60);
GuiLoadStyleDark();
Expand Down
2 changes: 2 additions & 0 deletions examples/image_exporter/image_exporter.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ int main(int argc, char *argv[])
const int screenWidth = 800;
const int screenHeight = 450;

SetConfigFlags(FLAG_WINDOW_HIGHDPI);

InitWindow(screenWidth, screenHeight, "raygui - image exporter");

// GUI controls initialization
Expand Down
2 changes: 2 additions & 0 deletions examples/image_importer_raw/image_importer_raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ int main()
const int screenWidth = 800;
const int screenHeight = 600;

SetConfigFlags(FLAG_WINDOW_HIGHDPI);

InitWindow(screenWidth, screenHeight, "raygui - image raw importer");

Texture2D texture = { 0 };
Expand Down
3 changes: 2 additions & 1 deletion examples/portable_window/portable_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ int main()
const int screenWidth = 800;
const int screenHeight = 600;

SetConfigFlags(FLAG_WINDOW_UNDECORATED);
SetConfigFlags(FLAG_WINDOW_UNDECORATED | FLAG_WINDOW_HIGHDPI);

InitWindow(screenWidth, screenHeight, "raygui - portable window");

// General variables
Expand Down
2 changes: 2 additions & 0 deletions examples/property_list/property_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ int main()
const int screenWidth = 800;
const int screenHeight = 450;

SetConfigFlags(FLAG_WINDOW_HIGHDPI);

InitWindow(screenWidth, screenHeight, "raygui - property list");

GuiDMProperty prop[] = {
Expand Down
2 changes: 2 additions & 0 deletions examples/scroll_panel/scroll_panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ int main()
const int screenWidth = 800;
const int screenHeight = 450;

SetConfigFlags(FLAG_WINDOW_HIGHDPI);

InitWindow(screenWidth, screenHeight, "raygui - GuiScrollPanel()");

Rectangle panelRec = { 20, 40, 200, 150 };
Expand Down
2 changes: 2 additions & 0 deletions examples/style_selector/style_selector.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ int main()
const int screenWidth = 800;
const int screenHeight = 480;

SetConfigFlags(FLAG_WINDOW_HIGHDPI);

InitWindow(screenWidth, screenHeight, "raygui - styles selector");
SetExitKey(0);

Expand Down