X

画面サイズとDPIを得る方法(WindowsかX環境下で)

世の中にはWindowsか、Xのある環境しか無いと思っている恐しいコード。切り分けするためのマクロがわからんかった。 #ifdef WIN32 #include <windows.h> #else #include <Xlib.h> #endif typedef struct ScreenInfo ScreenInfo; struct ScreenInfo{ int width_px, height_px; in</xlib.h></windows.h>…

test