Skip to content

fix graphics error when super smooth added - #41

Open
MostafaMohamed2002 wants to merge 1 commit into
MohamedKVIP:mainfrom
MostafaMohamed2002:feature/update-to-4.2
Open

fix graphics error when super smooth added#41
MostafaMohamed2002 wants to merge 1 commit into
MohamedKVIP:mainfrom
MostafaMohamed2002:feature/update-to-4.2

Conversation

@MostafaMohamed2002

@MostafaMohamed2002 MostafaMohamed2002 commented Feb 2, 2026

Copy link
Copy Markdown

fixes #37 #36

Copilot AI review requested due to automatic review settings February 2, 2026 17:56
@MostafaMohamed2002

Copy link
Copy Markdown
Author

@MohamedKVIP

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request attempts to add support for "Super Smooth" as a new graphics quality option for PUBG Mobile. The PR shifts all hex value mappings for graphics settings to accommodate the new option, changes a file path to use a raw string literal, and adds a status message after GameLoop connection.

Changes:

  • Added "Super Smooth" to graphics quality mappings with hex value b'\x01', shifting all other settings up by one
  • Added a status message after successful GameLoop connection
  • Changed file path string to raw string literal for better Windows path handling

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/gfx.py Added status message after GameLoop connection
src/app_functions.py Updated graphics quality mappings to include "Super Smooth" and fixed file path to use raw string

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/gfx.py
self.ui.pubgchoose_btn.clicked.connect(self.use_pubg_version)
return
self.ui.connect_gameloop_btn.setEnabled(True)
self.app.show_status_message("Connected! Please restart the gameloop.", 5)

Copilot AI Feb 2, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent capitalization of "GameLoop". The new message uses "gameloop" (lowercase), but existing messages in the same file use "GameLoop" (capitalized) at lines 159-160. For consistency, this should be changed to "Connected! Please restart the GameLoop."

Suggested change
self.app.show_status_message("Connected! Please restart the gameloop.", 5)
self.app.show_status_message("Connected! Please restart the GameLoop.", 5)

Copilot uses AI. Check for mistakes.
Comment thread src/app_functions.py
Comment on lines +812 to +817
b'\x01': "Super Smooth",
b'\x02': "Smooth",
b'\x03': "Balanced",
b'\x04': "HD",
b'\x05': "HDR",
b'\x06': "Ultra HD"

Copilot AI Feb 2, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The addition of "Super Smooth" as b'\x01' shifts all other graphics settings by one hex value. However, the UI (src/ui.py:939) still labels smooth_graphics_btn as "Smooth", not "Super Smooth". Additionally, there is no super_smooth_graphics_btn in the UI. This means when get_graphics_setting returns "Super Smooth", it won't match any button text in the button matching logic at src/gfx.py:192-193, causing the wrong button to be selected or no button to be selected at all. The UI needs to be updated to either add a new "Super Smooth" button or relabel the existing smooth_graphics_btn.

Suggested change
b'\x01': "Super Smooth",
b'\x02': "Smooth",
b'\x03': "Balanced",
b'\x04': "HD",
b'\x05': "HDR",
b'\x06': "Ultra HD"
b'\x01': "Smooth",
b'\x02': "Balanced",
b'\x03': "HD",
b'\x04': "HDR",
b'\x05': "Ultra HD",

Copilot uses AI. Check for mistakes.
Comment thread src/app_functions.py
Comment on lines +920 to 927
"Super Smooth": b'\x01',
"Smooth": b'\x02',
"Balanced": b'\x03',
"HD": b'\x04',
"HDR": b'\x05',
"Ultra HD": b'\x06'
}

Copilot AI Feb 2, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The graphics_setting dictionary maps "Super Smooth" to b'\x01', which shifts all other settings by one hex value. However, the graphics_buttons list in src/gfx.py (lines 182-188) only contains 5 buttons: smooth_graphics_btn, balanced_graphics_btn, hd_graphics_btn, hdr_graphics_btn, and ultrahd_graphics_btn. There is no super_smooth_graphics_btn, meaning the new "Super Smooth" quality cannot be selected by users. Either a new UI button needs to be added, or the existing smooth_graphics_btn should be relabeled to "Super Smooth".

Suggested change
"Super Smooth": b'\x01',
"Smooth": b'\x02',
"Balanced": b'\x03',
"HD": b'\x04',
"HDR": b'\x05',
"Ultra HD": b'\x06'
}
"Smooth": b'\x01',
"Balanced": b'\x02',
"HD": b'\x03',
"HDR": b'\x04',
"Ultra HD": b'\x05'
}

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

due to which which i set Ultra hd it is set to hdr and when set to hdr it sets hd. so please update the app.

2 participants