Skip to content

Commit f089827

Browse files
committed
Don't hardcode the window size
1 parent 665edc5 commit f089827

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kitty/shaders.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ void setup_scroll(int UNUSED width, int UNUSED height) {
185185
glGenTextures(1, &scroll_texture);
186186
glBindTexture(GL_TEXTURE_2D, scroll_texture);
187187
printf("%d %d\n", width, height);
188-
//glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL);
189-
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 640, 400, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL);
188+
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL);
189+
//glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 640, 400, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL);
190190
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
191191
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
192192
glBindTexture(GL_TEXTURE_2D, 0);

0 commit comments

Comments
 (0)