Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Incorrect display size for non-apple external monitors on macOS

オープン
#22 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp, macos

調査の方向性

まず、macOS における libpointing のディスプレイサイズ処理を追跡し、CGDisplayScreenSize と、リンク先の gist に示されている EDID の解析を比較します。報告された HP Compaq LA2205wg モニターでの動作を検証してください。完了条件は、既存のディスプレイ処理を維持しながら、Apple 製ではない外部ディスプレイについて正しい物理サイズを返すことです。

索引モデルが issue の本文から書いたものです。

説明

The display physical size returned by libpointing is incorrect on my external monitors (HP Compaq LA2205wg).

The problem seems to be coming from the native function "CGDisplayScreenSize", from the documentation :
"If Extended Display Identification Data (EDID) for the display device is not available, the size is estimated based on the device width and height in pixels from CGDisplayBounds, with an assumed resolution of 2.835 pixels/mm or 72 dpi, a reasonable guess for displays predating EDID support."

It seems to be what is happening because I obtain a DPI of 72 (instead of 86), but it should not be the case because my monitors have an EDID.
And I am able to retrieve the correct physical size by directly parsing the EDID of my monitors.
I wrote this code to compare the result obtained by parsing the EDID vs CGDisplayScreenSize :
https://gist.github.com/m-damien/75617b3eba1b125aac1be4af7444acad

I am on macOS Sierra.
The value returned by Qt using QScreen#logicalDotsPerInch is also incorrect.

主要言語
C++
スター
54
フォーク
14
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

INRIA/libpointing のほかの issue

INRIA/libpointing の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。