25. June 2021

How to disable automatic screen dimming on Windows Lenovo T14 with Intel UHD Graphics

Windows 10 on Lenovo T14 with Intel UHD Graphics has one very annoying behavior. The system automatically dims dark screens like a terminal window which becomes barely readable and the system brightens white screens like a web browser.

Here’s how you can disable this automatic dimming.

Press Windows key and type: Intel Graphics Command Center

Click icon with 4 squares a.k.a. System. Select Power tab, scroll down to Power Settings, uncheck Display Power Savings.

One other option is to dial down Power Efficiency to value like 1.

Option Enhanced Power Saving – Dims bright images for power saving – does not have effect.

10. May 2018

SDL2_gfx for Android – Graphic primitives

In previous article, we were talking about drawing pictures in JPEG format. Let’s look how to draw some graphic primitives like a line. SDL2_gfx is small library which has support for graphic primitives and some surface functions.

The initial steps to add SDL2_gfx to Android project is the same like in case of SDL2_jpeg.

Register library in settings.gradle:

include ':SDL2_gfx'

The library should be stored in SDL2_gfx directory with build.gradle.

Now update our C application.

Here is simple example which draws a line:

thickLineColor(renderer, 0, 300, 300, 300, 20, 0xFF00FFFF);

You can find the source code at GitHub in sdl2-android-example repository. Further articles about SDL2 and android are available under the tag SDL2.

Special thanks for this extension of SDL2 Android example goes to jojomickymack who suggested how to add support for SDL2_gfx to Android project. Thank you.